style(AdminListModal): differentiate mod and admin role

This commit is contained in:
plebeius.eth
2023-09-26 14:46:11 +02:00
parent 40a2ff94ea
commit 7bd3768e1b
10 changed files with 3381 additions and 3368 deletions
+47 -47
View File
@@ -3,23 +3,15 @@ import Modal from 'react-modal';
import Draggable from 'react-draggable';
import { StyledModal } from '../styled/modals/ReplyModal.styled';
import useGeneralStore from '../../hooks/stores/useGeneralStore';
import { BoardForm } from '../styled/views/Board.styled'
import { BoardForm } from '../styled/views/Board.styled';
import { Link } from 'react-router-dom';
const AdminListModal = ({ isOpen, closeModal, roles }) => {
const {
selectedAddress,
selectedStyle,
selectedTitle,
} = useGeneralStore(state => state);
const { selectedStyle } = useGeneralStore((state) => state);
const [isMobile, setIsMobile] = useState(window.innerWidth <= 480);
const nodeRef = useRef(null);
const rolesList = roles
? Object.entries(roles).map(([address, { role }]) => ({ address, role }))
: [];
const rolesList = roles ? Object.entries(roles).map(([address, { role }]) => ({ address, role })) : [];
useEffect(() => {
const handleResize = () => setIsMobile(window.innerWidth <= 480);
@@ -30,45 +22,53 @@ const AdminListModal = ({ isOpen, closeModal, roles }) => {
window.removeEventListener('resize', handleResize);
};
}, [setIsMobile]);
return (
<StyledModal
isOpen={isOpen}
onRequestClose={closeModal}
contentLabel="Reply Modal"
shouldCloseOnEsc={true}
shouldCloseOnOverlayClick={isMobile}
selectedStyle={selectedStyle}
overlayClassName="overlay"
style={isMobile ? ({ overlay: { backgroundColor: "rgba(0,0,0,.25)" }}) : ({ overlay: { backgroundColor: "rgba(0,0,0,0)" }})
}
>
<Draggable handle=".modal-header" nodeRef={nodeRef} disabled={isMobile}>
<div className="modal-content" ref={nodeRef}
style={{
maxWidth: '300px',
maxHeight: '250px',
}}>
<div className="modal-header">
Admins for {selectedTitle ?? selectedAddress}
<button className="icon" onClick={() => closeModal()} title="close" />
</div>
<div className='list' style={{
padding: '10px',
maxHeight: '200px',
isOpen={isOpen}
onRequestClose={closeModal}
contentLabel='Reply Modal'
shouldCloseOnEsc={true}
shouldCloseOnOverlayClick={isMobile}
selectedStyle={selectedStyle}
overlayClassName='overlay'
style={isMobile ? { overlay: { backgroundColor: 'rgba(0,0,0,.25)' } } : { overlay: { backgroundColor: 'rgba(0,0,0,0)' } }}
>
<Draggable handle='.modal-header' nodeRef={nodeRef} disabled={isMobile}>
<div
className='modal-content'
ref={nodeRef}
style={{
maxWidth: '300px',
overflowY: 'auto',
overflowX: 'hidden',
wordWrap: 'break-word',
wordBreak: 'break-all',
}}>
<BoardForm selectedStyle={selectedStyle} style={{all: 'unset'}}>
{rolesList.map(({ address, role }, index) => (
<p key={index}>
<Link to={() => {}} className="quote-link">u/{address}</Link>: {role}
</p>
))}
maxHeight: '250px',
}}
>
<button className='icon' onClick={() => closeModal()} title='close' />
<div className='modal-header' style={{ margin: '10px 10px 0px 10px' }}>
Moderators
</div>
<div
className='list'
style={{
padding: '10px',
maxHeight: '200px',
maxWidth: '300px',
overflowY: 'auto',
overflowX: 'hidden',
wordWrap: 'break-word',
wordBreak: 'break-all',
}}
>
<BoardForm selectedStyle={selectedStyle} style={{ all: 'unset' }}>
{rolesList.map(({ address, role }, index) => (
<p key={index}>
{' '}
<Link to={() => {}} className='quote-link'>
u/{address}
</Link>
: {role}
</p>
))}
</BoardForm>
</div>
</div>
@@ -79,4 +79,4 @@ const AdminListModal = ({ isOpen, closeModal, roles }) => {
Modal.setAppElement('#root');
export default AdminListModal;
export default AdminListModal;
+136 -131
View File
@@ -15,7 +15,8 @@ export const Container = styled.div`
export const NavBar = styled.div`
@media (min-width: 480px) {
.board-select, .page-jump {
.board-select,
.page-jump {
display: none;
}
@@ -33,7 +34,8 @@ export const NavBar = styled.div`
}
@media (max-width: 480px) {
.boardList, .nav {
.boardList,
.nav {
display: none;
}
@@ -81,9 +83,9 @@ export const NavBar = styled.div`
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `font-size: 9pt;
switch (selectedStyle) {
case 'Yotsuba':
return `font-size: 9pt;
color: #b86;
a, #button-span {
@@ -110,8 +112,8 @@ export const NavBar = styled.div`
color: navy;
}`;
case 'Yotsuba-B':
return `font-size: 9pt;
case 'Yotsuba-B':
return `font-size: 9pt;
color: #89a;
a, #button-span {
@@ -220,11 +222,12 @@ export const NavBar = styled.div`
background-color: #ddd;
border-bottom: 2px solid #ccc;
}`;
default:
return '';
}
}}`;
default:
return '';
}
}}
`;
export const Header = styled.div`
${({ selectedStyle }) => {
@@ -418,10 +421,10 @@ export const Header = styled.div`
margin-top: 5px;
font-size: 9pt;
}`;
default:
return '';
}
default:
return '';
}
}}
.offline {
@@ -463,16 +466,16 @@ export const Break = styled.hr`
border: none;
border-top: 1px solid #ddd;
height: 0;`;
default:
return '';
}
default:
return '';
}
}}
`;
export const PostFormLink = styled.div`
@media (min-width: 480px) {
display: ${props => (props.showPostFormLink ? 'block' : 'none')};
display: ${(props) => (props.showPostFormLink ? 'block' : 'none')};
#post-form-link-mobile {
display: none;
@@ -480,7 +483,7 @@ export const PostFormLink = styled.div`
}
@media (max-width: 480px) {
display: ${props => (props.showPostFormLink ? 'block' : 'none')};
display: ${(props) => (props.showPostFormLink ? 'block' : 'none')};
line-height: 30px;
#post-form-link-desktop {
@@ -488,11 +491,11 @@ export const PostFormLink = styled.div`
}
#post-form-link-mobile {
margin: 11px 0;
font-size: 10pt;
text-align: center;
font-weight: 700;
display: block !important;
margin: 11px 0;
font-size: 10pt;
text-align: center;
font-weight: 700;
display: block !important;
}
}
@@ -620,15 +623,15 @@ export const PostFormLink = styled.div`
color: #333 !important;
white-space: nowrap;
}`;
default:
return '';
}
}}
default:
return '';
}
}}
`;
export const PostFormTable = styled.table`
display: ${props => (props.showPostForm ? 'table' : 'none')};
display: ${(props) => (props.showPostForm ? 'table' : 'none')};
width: 418px;
border-spacing: 1px;
margin-left: auto;
@@ -1145,15 +1148,15 @@ export const PostFormTable = styled.table`
width: 100%
}
}`;
default:
return '';
}
default:
return '';
}
}}
#t-help {
margin: 0;
margin-top: -5px
margin-top: -5px;
}
`;
@@ -1249,10 +1252,10 @@ export const PostForm = styled.div`
a:hover {
color: #ff3300;
}`;
default:
return '';
}
default:
return '';
}
}}
`;
@@ -1396,10 +1399,10 @@ export const TopBar = styled.div`
a:hover, #subscribe:hover {
color: #ff3300 !important;
}`;
default:
return '';
}
default:
return '';
}
}}
.ellipsis {
@@ -1407,10 +1410,10 @@ export const TopBar = styled.div`
}
.ellipsis:after {
content: "\\2026";
content: '\\2026';
position: absolute;
-webkit-animation: ellipsis steps(4,end) 1200ms infinite;
animation: ellipsis steps(4,end) 1500ms infinite;
-webkit-animation: ellipsis steps(4, end) 1200ms infinite;
animation: ellipsis steps(4, end) 1500ms infinite;
width: 0px;
overflow: hidden;
}
@@ -1441,7 +1444,7 @@ export const TopBar = styled.div`
max-width: calc(100vw - 50vw);
word-wrap: break-word;
white-space: nowrap;
text-overflow: "";
text-overflow: '';
overflow: hidden;
}
@@ -1450,10 +1453,10 @@ export const TopBar = styled.div`
}
.ellipsis-all:after {
content: "\\2026";
content: '\\2026';
position: absolute;
-webkit-animation: ellipsis steps(4,end) 1200ms infinite;
animation: ellipsis steps(4,end) 1500ms infinite;
-webkit-animation: ellipsis steps(4, end) 1200ms infinite;
animation: ellipsis steps(4, end) 1500ms infinite;
width: 0px;
overflow: hidden;
}
@@ -1494,7 +1497,7 @@ export const TopBar = styled.div`
max-width: 90vw;
word-wrap: break-word;
white-space: nowrap;
text-overflow: "";
text-overflow: '';
overflow: hidden;
}
@@ -1503,10 +1506,10 @@ export const TopBar = styled.div`
}
.ellipsis-all:after {
content: "\\2026";
content: '\\2026';
position: absolute;
-webkit-animation: ellipsis steps(4,end) 1200ms infinite;
animation: ellipsis steps(4,end) 1500ms infinite;
-webkit-animation: ellipsis steps(4, end) 1200ms infinite;
animation: ellipsis steps(4, end) 1500ms infinite;
width: 0px;
overflow: hidden;
}
@@ -1683,11 +1686,11 @@ export const TopBar = styled.div`
color: #333 !important;
white-space: nowrap;
}`;
default:
return '';
}
}}
default:
return '';
}
}}
`;
export const BoardForm = styled.div`
@@ -1695,11 +1698,15 @@ export const BoardForm = styled.div`
margin-right: 14px;
}
.capcode-admin {
color: red !important;
}
.ellipsis:after {
content: "\\2026";
content: '\\2026';
position: absolute;
-webkit-animation: ellipsis steps(4,end) 1200ms infinite;
animation: ellipsis steps(4,end) 1500ms infinite;
-webkit-animation: ellipsis steps(4, end) 1200ms infinite;
animation: ellipsis steps(4, end) 1500ms infinite;
width: 0px;
overflow: hidden;
}
@@ -1793,9 +1800,9 @@ export const BoardForm = styled.div`
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `.highlighted, .highlighted-click, .highlighted-address {
switch (selectedStyle) {
case 'Yotsuba':
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #f0c0b0 !important;
border: 1px solid #d99f91 !important;
border-left: none !important;
@@ -1821,8 +1828,8 @@ export const BoardForm = styled.div`
}
}`;
case 'Yotsuba-B':
return `.highlighted, .highlighted-click, .highlighted-address {
case 'Yotsuba-B':
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #d6bad0 !important;
border: 1px solid #ba9dbf !important;
border-left: none !important;
@@ -1848,8 +1855,8 @@ export const BoardForm = styled.div`
}
}`;
case 'Futaba':
return `.highlighted, .highlighted-click, .highlighted-address {
case 'Futaba':
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #f0c0b0 !important;
}
@@ -1872,8 +1879,8 @@ export const BoardForm = styled.div`
}
}`;
case 'Burichan':
return `.highlighted, .highlighted-click, .highlighted-address {
case 'Burichan':
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #d6bad0 !important;
}
@@ -1896,8 +1903,8 @@ export const BoardForm = styled.div`
}
}`;
case 'Tomorrow':
return `.highlighted, .highlighted-click, .highlighted-address {
case 'Tomorrow':
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #1d1d21 !important;
outline: 1px solid #111 !important;
}
@@ -1920,8 +1927,8 @@ export const BoardForm = styled.div`
}
}`;
case 'Photon':
return `.highlighted, .highlighted-click, .highlighted-address {
case 'Photon':
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #ccc !important;
outline: 1px solid #ccc !important;
}
@@ -1944,25 +1951,24 @@ export const BoardForm = styled.div`
}
}`;
default:
return '';
}
}}
}
.file {
display: block;
.file-text {
max-width: 600px;
white-space: nowrap;
}
.fileText a {
text-decoration: underline;
}
.file-thumb {
float: left;
margin: 3px 20px 5px 20px;
@@ -2028,7 +2034,7 @@ export const BoardForm = styled.div`
margin: 4px 0;
overflow: hidden;
}
.post-info-mobile {
overflow: hidden;
padding: 5px;
@@ -2036,7 +2042,7 @@ export const BoardForm = styled.div`
display: block;
clear: left;
}
.post-menu-button-mobile {
line-height: 1em !important;
width: 1em !important;
@@ -2047,14 +2053,14 @@ export const BoardForm = styled.div`
float: left !important;
font-weight: 700 !important;
opacity: 1 !important;
height: .5em !important;
height: 0.5em !important;
font-size: 16px !important;
}
.name-block-mobile {
clear: none;
float: left;
.subject-mobile {
display: block;
}
@@ -2064,7 +2070,7 @@ export const BoardForm = styled.div`
float: right;
text-align: right;
}
.file-mobile {
display: block;
@@ -2099,7 +2105,7 @@ export const BoardForm = styled.div`
#video-thumbnail-mobile {
width: 100px;
}
img {
border: none;
float: left;
@@ -2108,13 +2114,13 @@ export const BoardForm = styled.div`
object-fit: scale-down;
margin: 0;
}
blockquote {
padding-top: 5px;
display: block;
margin: 10px !important;
}
.post-link-mobile {
clear: both !important;
padding: 5px;
@@ -2122,12 +2128,12 @@ export const BoardForm = styled.div`
margin: -5px;
display: block !important;
}
.info-mobile {
margin-top: 8px;
float: left;
}
.button-mobile {
float: right;
border-radius: 3px;
@@ -2164,7 +2170,7 @@ export const BoardForm = styled.div`
.file-mobile {
display: block;
.file-thumb-mobile {
margin-left: 10px !important;
margin-right: 10px !important;
@@ -2173,7 +2179,7 @@ export const BoardForm = styled.div`
margin-bottom: 5px;
margin-top: 15px;
}
.file-info-mobile {
padding-top: 5px;
text-align: center;
@@ -2186,7 +2192,7 @@ export const BoardForm = styled.div`
video {
max-width: 100px;
}
img {
border: none;
float: left;
@@ -2207,12 +2213,12 @@ export const BoardForm = styled.div`
width: 1em !important;
text-align: center !important;
outline: none !important;
transform: rotate(90deg)!important;
transform: rotate(90deg) !important;
margin: 4px -5px 0 4px !important;
float: left !important;
font-weight: 700 !important;
opacity: 1 !important;
height: .5em !important;
height: 0.5em !important;
font-size: 16px !important;
}
@@ -2225,7 +2231,8 @@ export const BoardForm = styled.div`
float: right;
text-align: right;
a, #reply-button {
a,
#reply-button {
text-decoration: none;
}
}
@@ -2236,7 +2243,6 @@ export const BoardForm = styled.div`
margin: 10px !important;
}
}
}
${({ selectedStyle }) => {
@@ -3283,10 +3289,10 @@ export const BoardForm = styled.div`
border-top: 1px solid #ddd;
height: 0;
}`;
default:
return '';
}
default:
return '';
}
}}
@media (max-width: 480px) {
@@ -3309,7 +3315,7 @@ export const BoardForm = styled.div`
margin-left: calc((100% - 100vw) / 2);
margin-right: calc((100% - 100vw) / 2);
}
.name-block {
display: block;
}
@@ -3355,7 +3361,7 @@ export const BoardForm = styled.div`
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #ccc !important;
}`;
default:
return '';
}
@@ -4078,7 +4084,7 @@ export const BoardForm = styled.div`
}
}
}`;
default:
return '';
}
@@ -4090,15 +4096,14 @@ export const PostMenu = styled.div`
display: inline-block;
cursor: pointer;
transition: transform 0.1s;
transform: ${props => props.rotated ? 'rotate(90deg)' : 'none'};
transform: ${(props) => (props.rotated ? 'rotate(90deg)' : 'none')};
`;
export const PostMenuMobile = styled.div`
font-size: 16px;
line-height: 2.5em;
width: 216px;
font-size: 16px;
line-height: 2.5em;
width: 216px;
ul {
border-right-width: 2px !important;
list-style: none;
@@ -4115,9 +4120,9 @@ export const PostMenuMobile = styled.div`
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `
switch (selectedStyle) {
case 'Yotsuba':
return `
ul {
border: 1px solid #d9bfb7;
}
@@ -4133,8 +4138,8 @@ export const PostMenuMobile = styled.div`
}
`;
case 'Yotsuba-B':
return `
case 'Yotsuba-B':
return `
ul {
border: 1px solid #b7c5d9;
}
@@ -4150,8 +4155,8 @@ export const PostMenuMobile = styled.div`
}
`;
case 'Futaba':
return `
case 'Futaba':
return `
ul {
border: 1px solid #d9bfb7;
}
@@ -4167,8 +4172,8 @@ export const PostMenuMobile = styled.div`
}
`;
case 'Burichan':
return `
case 'Burichan':
return `
ul {
border: 1px solid #b7c5d9;
}
@@ -4184,8 +4189,8 @@ export const PostMenuMobile = styled.div`
}
`;
case 'Tomorrow':
return `
case 'Tomorrow':
return `
ul {
border: 1px solid #282a2e;
}
@@ -4200,8 +4205,8 @@ export const PostMenuMobile = styled.div`
}
`;
case 'Photon':
return `
case 'Photon':
return `
ul {
border: 1px solid #ccc;
}
@@ -4215,9 +4220,9 @@ export const PostMenuMobile = styled.div`
}
}
`;
default:
return '';
}}
default:
return '';
}
`;
}}
`;
+94 -86
View File
@@ -2,15 +2,17 @@ import styled from 'styled-components';
export const ReplyFormLink = styled.div`
@media (min-width: 480px) {
display: ${props => (props.showReplyFormLink ? 'block' : 'none')};
display: ${(props) => (props.showReplyFormLink ? 'block' : 'none')};
#post-form-link-mobile, #return-button-mobile, #catalog-button-mobile, #bottom-button-mobile {
#post-form-link-mobile,
#return-button-mobile,
#catalog-button-mobile,
#bottom-button-mobile {
display: none;
}
}
@media (max-width: 480px) {
#post-form-link-desktop {
display: none;
}
@@ -24,7 +26,10 @@ export const ReplyFormLink = styled.div`
padding-top: 10px;
}
#return-button-mobile, #catalog-button-mobile, #bottom-button-mobile, #bottom-bar-top {
#return-button-mobile,
#catalog-button-mobile,
#bottom-button-mobile,
#bottom-bar-top {
font-size: 10pt;
display: inline-block;
margin: 0 2px;
@@ -164,11 +169,11 @@ export const ReplyFormLink = styled.div`
color: #333 !important;
white-space: nowrap;
}`;
default:
return '';
}
}}
}
}}
`;
export const TopBar = styled.div`
@@ -186,7 +191,7 @@ export const TopBar = styled.div`
max-width: calc(100vw - 50vw);
word-wrap: break-word;
white-space: nowrap;
text-overflow: "";
text-overflow: '';
overflow: hidden;
}
@@ -195,10 +200,10 @@ export const TopBar = styled.div`
}
.ellipsis-all:after {
content: "\\2026";
content: '\\2026';
position: absolute;
-webkit-animation: ellipsis steps(4,end) 1200ms infinite;
animation: ellipsis steps(4,end) 1500ms infinite;
-webkit-animation: ellipsis steps(4, end) 1200ms infinite;
animation: ellipsis steps(4, end) 1500ms infinite;
width: 0px;
overflow: hidden;
}
@@ -223,7 +228,7 @@ export const TopBar = styled.div`
}
@media (max-width: 480px) {
.stats-all-catalog-container {
.stats-all-catalog-container {
height: 25px;
position: absolute;
text-align: left;
@@ -237,7 +242,7 @@ export const TopBar = styled.div`
max-width: 90vw;
word-wrap: break-word;
white-space: nowrap;
text-overflow: "";
text-overflow: '';
overflow: hidden;
}
@@ -246,17 +251,19 @@ export const TopBar = styled.div`
}
.ellipsis-all:after {
content: "\\2026";
content: '\\2026';
position: absolute;
-webkit-animation: ellipsis steps(4,end) 1200ms infinite;
animation: ellipsis steps(4,end) 1500ms infinite;
-webkit-animation: ellipsis steps(4, end) 1200ms infinite;
animation: ellipsis steps(4, end) 1500ms infinite;
width: 0px;
overflow: hidden;
}
line-height: 30px;
#return-button-desktop, #catalog-button-desktop, #bottom-button-desktop {
#return-button-desktop,
#catalog-button-desktop,
#bottom-button-desktop {
display: none;
}
@@ -293,10 +300,10 @@ export const TopBar = styled.div`
}
.ellipsis:after {
content: "\\2026";
content: '\\2026';
position: absolute;
-webkit-animation: ellipsis steps(4,end) 1200ms infinite;
animation: ellipsis steps(4,end) 1500ms infinite;
-webkit-animation: ellipsis steps(4, end) 1200ms infinite;
animation: ellipsis steps(4, end) 1500ms infinite;
width: 0px;
overflow: hidden;
}
@@ -317,7 +324,7 @@ export const TopBar = styled.div`
display: inline-block;
}
.reply-stat {
.reply-stat {
position: relative;
float: right;
margin-right: 5px;
@@ -696,11 +703,11 @@ export const TopBar = styled.div`
color: #333 !important;
white-space: nowrap;
}`;
default:
return '';
}
}}
default:
return '';
}
}}
`;
export const BottomBar = styled.div`
@@ -709,10 +716,10 @@ export const BottomBar = styled.div`
}
.ellipsis:after {
content: "\\2026";
content: '\\2026';
position: absolute;
-webkit-animation: ellipsis steps(4,end) 1200ms infinite;
animation: ellipsis steps(4,end) 1500ms infinite;
-webkit-animation: ellipsis steps(4, end) 1200ms infinite;
animation: ellipsis steps(4, end) 1500ms infinite;
width: 0px;
overflow: hidden;
}
@@ -729,7 +736,7 @@ export const BottomBar = styled.div`
}
}
.reply-stat {
.reply-stat {
position: relative;
float: right;
margin-right: 5px;
@@ -899,11 +906,15 @@ export const BoardForm = styled.div`
margin-right: 14px;
}
.capcode-admin {
color: red !important;
}
.ellipsis:after {
content: "\\2026";
content: '\\2026';
position: absolute;
-webkit-animation: ellipsis steps(4,end) 1200ms infinite;
animation: ellipsis steps(4,end) 1500ms infinite;
-webkit-animation: ellipsis steps(4, end) 1200ms infinite;
animation: ellipsis steps(4, end) 1500ms infinite;
width: 0px;
overflow: hidden;
}
@@ -982,9 +993,9 @@ export const BoardForm = styled.div`
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `.highlighted, .highlighted-click, .highlighted-address {
switch (selectedStyle) {
case 'Yotsuba':
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #f0c0b0 !important;
border: 1px solid #d99f91 !important;
border-left: none !important;
@@ -1008,8 +1019,8 @@ export const BoardForm = styled.div`
}
}`;
case 'Yotsuba-B':
return `.highlighted, .highlighted-click, .highlighted-address {
case 'Yotsuba-B':
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #d6bad0 !important;
border: 1px solid #ba9dbf !important;
border-left: none !important;
@@ -1032,8 +1043,8 @@ export const BoardForm = styled.div`
}
}`;
case 'Futaba':
return `.highlighted, .highlighted-click, .highlighted-address {
case 'Futaba':
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #f0c0b0 !important;
}
@@ -1055,8 +1066,8 @@ export const BoardForm = styled.div`
}
}`;
case 'Burichan':
return `.highlighted, .highlighted-click, .highlighted-address {
case 'Burichan':
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #d6bad0 !important;
}
@@ -1078,8 +1089,8 @@ export const BoardForm = styled.div`
}
}`;
case 'Tomorrow':
return `.highlighted, .highlighted-click, .highlighted-address {
case 'Tomorrow':
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #1d1d21 !important;
outline: 1px solid #111 !important;
}
@@ -1100,8 +1111,8 @@ export const BoardForm = styled.div`
}
}`;
case 'Photon':
return `.highlighted, .highlighted-click, .highlighted-address {
case 'Photon':
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #ccc !important;
outline: 1px solid #ccc !important;
}
@@ -1127,19 +1138,19 @@ export const BoardForm = styled.div`
}
}}
}
.file {
display: block;
.file-text {
max-width: 600px;
white-space: nowrap;
}
.fileText a {
text-decoration: underline;
}
.file-thumb {
float: left;
margin: 3px 20px 5px 20px;
@@ -1155,7 +1166,7 @@ export const BoardForm = styled.div`
float: left;
margin: 3px 20px 5px 20px;
}
.file-thumb img,
.file-thumb video,
.file-thumb audio {
@@ -1170,7 +1181,6 @@ export const BoardForm = styled.div`
max-width: 125px;
max-height: 125px;
}
}
.thread-mobile {
@@ -1194,7 +1204,7 @@ export const BoardForm = styled.div`
margin: 4px 0;
overflow: hidden;
}
.post-info-mobile {
overflow: hidden;
padding: 5px;
@@ -1202,7 +1212,7 @@ export const BoardForm = styled.div`
display: block;
clear: left;
}
.post-menu-button-mobile {
line-height: 1em !important;
width: 1em !important;
@@ -1213,14 +1223,14 @@ export const BoardForm = styled.div`
float: left !important;
font-weight: 700 !important;
opacity: 1 !important;
height: .5em !important;
height: 0.5em !important;
font-size: 16px !important;
}
.name-block-mobile {
clear: none;
float: left;
.subject-mobile {
display: block;
}
@@ -1230,10 +1240,10 @@ export const BoardForm = styled.div`
float: right;
text-align: right;
}
.file-mobile {
display: block;
.file-thumb-mobile {
margin-left: 10px !important;
margin-right: 10px !important;
@@ -1242,7 +1252,7 @@ export const BoardForm = styled.div`
margin-bottom: 5px;
margin-top: 15px;
}
.file-info-mobile {
padding-top: 5px;
text-align: center;
@@ -1250,7 +1260,6 @@ export const BoardForm = styled.div`
display: block !important;
clear: left !important;
}
}
video {
@@ -1262,7 +1271,7 @@ export const BoardForm = styled.div`
width: 100%;
height: auto;
}
img {
border: none;
float: left;
@@ -1270,13 +1279,13 @@ export const BoardForm = styled.div`
max-height: 100px;
object-fit: scale-down;
}
blockquote {
padding-top: 5px;
display: block;
margin: 10px !important;
}
.post-link-mobile {
clear: both !important;
padding: 5px;
@@ -1284,12 +1293,12 @@ export const BoardForm = styled.div`
margin: -5px;
display: block !important;
}
.info-mobile {
margin-top: 8px;
float: left;
}
.button-mobile {
float: right;
border-radius: 3px;
@@ -1313,7 +1322,7 @@ export const BoardForm = styled.div`
.file-mobile {
display: block;
.file-thumb-mobile {
margin-left: 10px !important;
margin-right: 10px !important;
@@ -1322,7 +1331,7 @@ export const BoardForm = styled.div`
margin-bottom: 5px;
margin-top: 15px;
}
.file-info-mobile {
padding-top: 5px;
text-align: center;
@@ -1335,7 +1344,7 @@ export const BoardForm = styled.div`
video {
max-width: 100px;
}
img {
border: none;
float: left;
@@ -1356,12 +1365,12 @@ export const BoardForm = styled.div`
width: 1em !important;
text-align: center !important;
outline: none !important;
transform: rotate(90deg)!important;
transform: rotate(90deg) !important;
margin: 4px -5px 0 4px !important;
float: left !important;
font-weight: 700 !important;
opacity: 1 !important;
height: .5em !important;
height: 0.5em !important;
font-size: 16px !important;
}
@@ -1385,7 +1394,6 @@ export const BoardForm = styled.div`
margin: 10px !important;
}
}
}
${({ selectedStyle }) => {
@@ -2421,7 +2429,7 @@ export const BoardForm = styled.div`
margin-left: calc((100% - 100vw) / 2);
margin-right: calc((100% - 100vw) / 2);
}
.name-block {
display: block;
}
@@ -2467,10 +2475,10 @@ export const BoardForm = styled.div`
return `.highlighted, .highlighted-click, .highlighted-address {
background-color: #ccc !important;
}`;
default:
return '';
}
default:
return '';
}
}}
${({ selectedStyle }) => {
@@ -3195,7 +3203,7 @@ export const BoardForm = styled.div`
}
}
}`;
default:
return '';
}
@@ -3207,7 +3215,7 @@ export const Footer = styled.div`
#version {
text-align: center;
font-size: 11px;
font-family: "arial";
font-family: 'arial';
}
@media (min-width: 480px) {
#break {
@@ -3319,9 +3327,9 @@ export const Footer = styled.div`
color: #f30;
}
}`;
default:
return '';
}
default:
return '';
}
}}
`;
`;
+1 -1
View File
@@ -915,7 +915,7 @@ const All = () => {
Anonymous
</span>
)}
&nbsp; (u/
&nbsp;(u/
<span
key={`pa-${index}`}
className='poster-address address-desktop'
+11 -11
View File
@@ -990,7 +990,7 @@ const Board = () => {
setIsAdminListOpen(!isAdminListOpen);
}}
>
## Board Admins
## Board Mods
</span>
&nbsp;
<span
@@ -1149,13 +1149,13 @@ const Board = () => {
)}
<span className='name-block-mobile'>
<span
className='name-mobile capcode'
className='name-mobile capcode-admin'
style={{ cursor: 'pointer' }}
onClick={() => {
setIsAdminListOpen(!isAdminListOpen);
}}
>
## Board Admins
## Board Mods
</span>
&nbsp;
<span className='thread-icons-mobile' style={{ float: 'right', marginRight: '18px' }}>
@@ -1215,7 +1215,7 @@ const Board = () => {
setIsAdminListOpen(!isAdminListOpen);
}}
>
## Board Admins
## Board Mods
</span>
&nbsp;
<span
@@ -1374,13 +1374,13 @@ const Board = () => {
)}
<span className='name-block-mobile'>
<span
className='name-mobile capcode'
className='name-mobile capcode-admin'
style={{ cursor: 'pointer' }}
onClick={() => {
setIsAdminListOpen(!isAdminListOpen);
}}
>
## Board Admins
## Board Mods
</span>
&nbsp;
<span className='thread-icons-mobile' style={{ float: 'right', marginRight: '18px' }}>
@@ -1457,7 +1457,7 @@ const Board = () => {
setIsAdminListOpen(!isAdminListOpen);
}}
>
## Board Admins
## Board Mods
</span>
&nbsp;
<span
@@ -1675,13 +1675,13 @@ const Board = () => {
)}
<span className='name-block-mobile'>
<span
className='name-mobile capcode'
className='name-mobile capcode-admin'
style={{ cursor: 'pointer' }}
onClick={() => {
setIsAdminListOpen(!isAdminListOpen);
}}
>
## Board Admins
## Board Mods
</span>
&nbsp;
<span className='thread-icons-mobile' style={{ float: 'right', marginRight: '18px' }}>
@@ -1941,7 +1941,7 @@ const Board = () => {
Anonymous
</span>
)}
&nbsp; (u/
&nbsp;(u/
<span
key={`pa-${index}`}
className='poster-address address-desktop'
@@ -1960,7 +1960,7 @@ const Board = () => {
)}
</VerifiedAuthor>
</span>
) &nbsp;
)&nbsp;
<span
key={`dt-${index}`}
className='date-time'
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -919,7 +919,7 @@ const Subscriptions = () => {
Anonymous
</span>
)}
&nbsp; (u/
&nbsp;(u/
<span
key={`pa-${index}`}
className='poster-address address-desktop'
+1 -1
View File
@@ -1096,7 +1096,7 @@ const Thread = () => {
Anonymous
</span>
)}
&nbsp; &nbsp;
&nbsp;
<span
className='poster-address address-desktop'
id='reply-button'