mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add sticky and closed
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 341 B |
@@ -58,6 +58,13 @@ export const Threads = styled.div`
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.closed-icon {
|
||||
background-image: url(assets/closed.gif);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.meta {
|
||||
cursor: help;
|
||||
font-size: 11px;
|
||||
|
||||
@@ -415,7 +415,7 @@ const Board = () => {
|
||||
}));
|
||||
}, [commentCid]);
|
||||
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if (publishCommentEditOptions && triggerPublishCommentEdit) {
|
||||
(async () => {
|
||||
@@ -779,6 +779,20 @@ const Board = () => {
|
||||
]
|
||||
</span>
|
||||
</span>
|
||||
{thread.pinned ? (
|
||||
<>
|
||||
|
||||
<img src="assets/sticky.gif" alt="Sticky" title="Sticky"
|
||||
style={{marginBottom: "-3px"}} />
|
||||
</>
|
||||
) : null}
|
||||
{thread.locked ? (
|
||||
<>
|
||||
|
||||
<img src="assets/closed.gif" alt="Closed" title="Closed"
|
||||
style={{marginBottom: "-3px"}} />
|
||||
</>
|
||||
) : null}
|
||||
<PostMenu
|
||||
key={`pmb-${index}`}
|
||||
title="Post menu"
|
||||
@@ -1185,6 +1199,16 @@ const Board = () => {
|
||||
</span>
|
||||
)
|
||||
</span>
|
||||
<span key={`ti-mob-${index}`} className="thread-icons-mobile" style={{float: "right", marginRight: "18px"}}>
|
||||
{thread.pinned ? (
|
||||
<img src="assets/sticky.gif" alt="Sticky" title="Sticky"
|
||||
style={{marginBottom: "-3px", marginRight: "2px"}} />
|
||||
) : null}
|
||||
{thread.locked ? (
|
||||
<img src="assets/closed.gif" alt="Closed" title="Closed"
|
||||
style={{marginBottom: "-3px", marginRight: "2px"}} />
|
||||
) : null}
|
||||
</span>
|
||||
<br key={`mob-br1-${index}`} />
|
||||
{thread.title ? (
|
||||
thread.title.length > 30 ?
|
||||
|
||||
@@ -515,9 +515,14 @@ const Catalog = () => {
|
||||
) : null}
|
||||
</Fragment>
|
||||
) : null}
|
||||
{/* <div key={`ti-${index}`} className="thread-icons" >
|
||||
<span key={`si-${index}`} className="thread-icon sticky-icon" title="Sticky"></span>
|
||||
</div> */}
|
||||
<div key={`ti-${index}`} className="thread-icons" >
|
||||
{thread.pinned ? (
|
||||
<span key={`si-${index}`} className="thread-icon sticky-icon" title="Sticky" />
|
||||
) : null}
|
||||
{thread.locked ? (
|
||||
<span key={`li-${index}`} className="thread-icon closed-icon" title="Closed" />
|
||||
) : null}
|
||||
</div>
|
||||
<div key={`meta-${index}`} className="meta" title="(R)eplies / (I)mage Replies" >
|
||||
R:
|
||||
<b key={`b-${index}`}>{thread.replyCount}</b>
|
||||
|
||||
@@ -736,7 +736,21 @@ const Thread = () => {
|
||||
<button id="reply-button" style={{ all: 'unset', cursor: 'pointer' }} onClick={() => {
|
||||
setIsReplyOpen(true); setSelectedParentCid(comment.cid); setSelectedShortCid(comment.shortCid);
|
||||
}} title="Reply to this post">{comment.shortCid}</button>
|
||||
</span>
|
||||
</span>
|
||||
{comment.pinned ? (
|
||||
<>
|
||||
|
||||
<img src="assets/sticky.gif" alt="Sticky" title="Sticky"
|
||||
style={{marginBottom: "-3px"}} />
|
||||
</>
|
||||
) : null}
|
||||
{comment.locked ? (
|
||||
<>
|
||||
|
||||
<img src="assets/closed.gif" alt="Closed" title="Closed"
|
||||
style={{marginBottom: "-3px"}} />
|
||||
</>
|
||||
) : null}
|
||||
<PostMenu
|
||||
key={`pmb-${index}`}
|
||||
title="Post menu"
|
||||
|
||||
Reference in New Issue
Block a user