diff --git a/src/components/styled/views/Board.styled.jsx b/src/components/styled/views/Board.styled.jsx index 2ccd0606..29378895 100644 --- a/src/components/styled/views/Board.styled.jsx +++ b/src/components/styled/views/Board.styled.jsx @@ -3266,6 +3266,9 @@ export const BoardForm = styled.div` switch (selectedStyle) { case 'Yotsuba': return ` + .capcode { + color: purple !important; + } .op-container { background-color: #f5e9e1; border: 1px solid #d9bfb7 !important; @@ -3383,6 +3386,9 @@ export const BoardForm = styled.div` case 'Yotsuba-B': return ` + .capcode { + color: purple !important; + } .op-container { background-color: #d6daf0; border: 1px solid #b7c5d9 !important; @@ -3496,6 +3502,9 @@ export const BoardForm = styled.div` case 'Futaba': return ` + .capcode { + color: purple !important; + } .op-container { background-color: #f5e9e1; border: 1px solid #d9bfb7 !important; @@ -3612,6 +3621,9 @@ export const BoardForm = styled.div` case 'Burichan': return ` + .capcode { + color: purple !important; + } .op-container { background-color: #d6daf0; border: 1px solid #b7c5d9 !important; @@ -3724,6 +3736,10 @@ export const BoardForm = styled.div` case 'Tomorrow': return ` + .capcode { + color: #81a2be !important; + } + .op-container { background-color: #282A2E; border: 1px solid #2D2F33 !important; @@ -3846,6 +3862,9 @@ export const BoardForm = styled.div` case 'Photon': return ` + .capcode { + color: #f60 !important; + } .op-container { background-color: #eee; border: 1px solid #ccc !important; diff --git a/src/components/views/Board.jsx b/src/components/views/Board.jsx index 06549823..292f9c4b 100755 --- a/src/components/views/Board.jsx +++ b/src/components/views/Board.jsx @@ -765,868 +765,930 @@ const Board = () => { ) : ( feed.length > 0 ? ( <> - {subplebbit.rules ? - <> -
-
-
-
- [
- {}} style={{textDecoration: "none"}} className="reply-link">Reply
- ]
-
- --- {subplebbit.rules.map((rule, index) => ( --- {index + 1}. {rule} - - ))} -
-
-
-
-
- --- {subplebbit.rules.map((rule, index) => ( --- {index + 1}. {rule} - - ))} -
-
+
+
+
+ [
+ {}} style={{textDecoration: "none"}} className="reply-link">Reply
+ ]
-
-
-
-
- [
- {}} style={{textDecoration: "none"}} className="reply-link">Reply
- ]
-
- --- {subplebbit.description} --
-
-
-
- ++ {subplebbit.rules.map((rule, index) => ( +++ {index + 1}. {rule} + + ))} +
+
-+- {subplebbit.description} --
+
+
+
+ +++ {subplebbit.rules.map((rule, index) => ( +++ {index + 1}. {rule} + + ))} +
+
+
+
+
+ [
+ {}} style={{textDecoration: "none"}} className="reply-link">Reply
+ ]
+
+ +++ {subplebbit.description} ++
+
+
+
+ +++ {subplebbit.description} ++
- >
- ) : null}
- {thread.locked ? (
- <>
-
-
- >
- ) : null}
-
- [
- setSelectedThread(thread.cid)} className="reply-link" >Reply
- ]
-
-
- --- (...) -
-- -
- Post too long. - setSelectedThread(thread.cid)} className="ttl-link">Click here - to view. - -
-) - : null} -- - -
+ >
+ ) : null}
+ {thread.locked ? (
+ <>
+
+
+ >
+ ) : null}
+
+ [
+ setSelectedThread(thread.cid)} className="reply-link" >Reply
+ ]
+
+
+++ (...) +
++ +
+ Post too long. + setSelectedThread(thread.cid)} className="ttl-link">Click here + to view. + +
+) + : null} ++ + +
+ ) : null} + {replyMediaInfo?.type === "audio" ? ( + + + ) : null} +
+ {}} key={`r-pm-${index}`} className="quotelink" + ref={el => { + quoteRefs.current[reply.cid] = el; + }} + onClick={(event) => handleQuoteClick(reply, shortParentCid, event)} + onMouseOver={(event) => { + event.stopPropagation(); + handleQuoteHover(reply, shortParentCid, () => { + setOutOfViewCid(reply.parentCid); + const rect = quoteRefs.current[reply.cid].getBoundingClientRect(); + const distanceToRight = window.innerWidth - rect.right; + const distanceToTop = rect.top; + const distanceToBottom = window.innerHeight - rect.bottom; + let top; + + if (distanceToTop < postOnHoverHeight / 2) { + top = window.scrollY - 5; + } else if (distanceToBottom < postOnHoverHeight / 2) { + top = window.scrollY - postOnHoverHeight + window.innerHeight - 10; + } else { + top = rect.top + window.scrollY - postOnHoverHeight / 2; + } + + if (distanceToRight < 200) { + setOutOfViewPosition({ + top, + right: window.innerWidth - rect.left - 10, + maxWidth: rect.left - 5 + }); + } else { + setOutOfViewPosition({ + top, + left: rect.left + rect.width + 5, + maxWidth: window.innerWidth - rect.left - rect.width - 5 + }); + } + }); + }} + onMouseLeave={() => { + removeHighlight(); + setOutOfViewCid(null); + }}> + {`c/${shortParentCid}`}{shortParentCid === thread.shortCid ? " (OP)" : null} + +++ (...) +
++ +
+ Comment too long. + setSelectedThread(thread.cid)} className="ttl-link">Click here + to view. +
{}} key={`r-pm-${index}`} className="quotelink" ref={el => { quoteRefs.current[reply.cid] = el; @@ -1663,7 +1725,7 @@ const Board = () => { maxWidth: window.innerWidth - rect.left - rect.width - 5 }); } - }); + }); }} onMouseLeave={() => { removeHighlight(); @@ -1671,360 +1733,360 @@ const Board = () => { }}> {`c/${shortParentCid}`}{shortParentCid === thread.shortCid ? " (OP)" : null} -- - :- (...) -
++ commentCid={reply.cid} + className="ttl"/> -
- Comment too long. - setSelectedThread(thread.cid)} className="ttl-link">Click here - to view. -
- {}} key={`r-pm-${index}`} className="quotelink" - ref={el => { - quoteRefs.current[reply.cid] = el; - }} - onClick={(event) => handleQuoteClick(reply, shortParentCid, event)} - onMouseOver={(event) => { - event.stopPropagation(); - handleQuoteHover(reply, shortParentCid, () => { - setOutOfViewCid(reply.parentCid); - const rect = quoteRefs.current[reply.cid].getBoundingClientRect(); - const distanceToRight = window.innerWidth - rect.right; - const distanceToTop = rect.top; - const distanceToBottom = window.innerHeight - rect.bottom; - let top; - - if (distanceToTop < postOnHoverHeight / 2) { - top = window.scrollY - 5; - } else if (distanceToBottom < postOnHoverHeight / 2) { - top = window.scrollY - postOnHoverHeight + window.innerHeight - 10; - } else { - top = rect.top + window.scrollY - postOnHoverHeight / 2; - } - - if (distanceToRight < 200) { - setOutOfViewPosition({ - top, - right: window.innerWidth - rect.left - 10, - maxWidth: rect.left - 5 - }); - } else { - setOutOfViewPosition({ - top, - left: rect.left + rect.width + 5, - maxWidth: window.innerWidth - rect.left - rect.width - 5 - }); - } - }); - }} - onMouseLeave={() => { - removeHighlight(); - setOutOfViewCid(null); - }}> - {`c/${shortParentCid}`}{shortParentCid === thread.shortCid ? " (OP)" : null} - -) - : null} + ) + : null} +- - -
- ) : null}
- {thread.locked ? (
-
- ) : null}
-
-
+ ) : null}
+ {thread.locked ? (
+
+ ) : null}
+
+ -- (...) -
+{commentMediaInfo?.type}+ +
+++ (...) +
++ +
+ Post too long. + setSelectedThread(thread.cid)} className="ttl-link">Click here + to view. +
+- - :-
- Post too long. - setSelectedThread(thread.cid)} className="ttl-link">Click here - to view. -
-) - : null} + ) + : null} +- - -