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;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.closed-icon {
|
||||||
|
background-image: url(assets/closed.gif);
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
.meta {
|
.meta {
|
||||||
cursor: help;
|
cursor: help;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
|
|||||||
@@ -779,6 +779,20 @@ const Board = () => {
|
|||||||
]
|
]
|
||||||
</span>
|
</span>
|
||||||
</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
|
<PostMenu
|
||||||
key={`pmb-${index}`}
|
key={`pmb-${index}`}
|
||||||
title="Post menu"
|
title="Post menu"
|
||||||
@@ -1185,6 +1199,16 @@ const Board = () => {
|
|||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
</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}`} />
|
<br key={`mob-br1-${index}`} />
|
||||||
{thread.title ? (
|
{thread.title ? (
|
||||||
thread.title.length > 30 ?
|
thread.title.length > 30 ?
|
||||||
|
|||||||
@@ -515,9 +515,14 @@ const Catalog = () => {
|
|||||||
) : null}
|
) : null}
|
||||||
</Fragment>
|
</Fragment>
|
||||||
) : null}
|
) : null}
|
||||||
{/* <div key={`ti-${index}`} className="thread-icons" >
|
<div key={`ti-${index}`} className="thread-icons" >
|
||||||
<span key={`si-${index}`} className="thread-icon sticky-icon" title="Sticky"></span>
|
{thread.pinned ? (
|
||||||
</div> */}
|
<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" >
|
<div key={`meta-${index}`} className="meta" title="(R)eplies / (I)mage Replies" >
|
||||||
R:
|
R:
|
||||||
<b key={`b-${index}`}>{thread.replyCount}</b>
|
<b key={`b-${index}`}>{thread.replyCount}</b>
|
||||||
|
|||||||
@@ -736,7 +736,21 @@ const Thread = () => {
|
|||||||
<button id="reply-button" style={{ all: 'unset', cursor: 'pointer' }} onClick={() => {
|
<button id="reply-button" style={{ all: 'unset', cursor: 'pointer' }} onClick={() => {
|
||||||
setIsReplyOpen(true); setSelectedParentCid(comment.cid); setSelectedShortCid(comment.shortCid);
|
setIsReplyOpen(true); setSelectedParentCid(comment.cid); setSelectedShortCid(comment.shortCid);
|
||||||
}} title="Reply to this post">{comment.shortCid}</button>
|
}} 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
|
<PostMenu
|
||||||
key={`pmb-${index}`}
|
key={`pmb-${index}`}
|
||||||
title="Post menu"
|
title="Post menu"
|
||||||
|
|||||||
Reference in New Issue
Block a user