added link to whole catalog thread

This commit is contained in:
plebbitor
2023-03-26 14:43:58 +02:00
parent cf0bd8e573
commit a0c72dd99e
+2 -2
View File
@@ -342,8 +342,8 @@ const Catalog = () => {
const commentMediaInfo = getCommentMediaInfo(thread); const commentMediaInfo = getCommentMediaInfo(thread);
const fallbackImgUrl = "/assets/filedeleted-res.gif"; const fallbackImgUrl = "/assets/filedeleted-res.gif";
return ( return (
<Link style={{all: "unset", cursor: "pointer"}} key={`a-${thread.cid}`} to={`/${selectedAddress}/thread/${thread.cid}`} onClick={() => handleClickThread(thread.cid)}>
<div key={`thread-${thread.cid}`} className="thread"> <div key={`thread-${thread.cid}`} className="thread">
<Link key={`a-${thread.cid}`} to={`/${selectedAddress}/thread/${thread.cid}`} onClick={() => handleClickThread(thread.cid)}>
{commentMediaInfo?.url ? ( {commentMediaInfo?.url ? (
<Fragment key="f-catalog"> <Fragment key="f-catalog">
{commentMediaInfo?.type === "webpage" ? ( {commentMediaInfo?.type === "webpage" ? (
@@ -374,7 +374,6 @@ const Catalog = () => {
) : null} ) : null}
</Fragment> </Fragment>
) : null} ) : null}
</Link>
{/* <div key={`ti-${thread.cid}`} className="thread-icons" > {/* <div key={`ti-${thread.cid}`} className="thread-icons" >
<span key={`si-${thread.cid}`} className="thread-icon sticky-icon" title="Sticky"></span> <span key={`si-${thread.cid}`} className="thread-icon sticky-icon" title="Sticky"></span>
</div> */} </div> */}
@@ -387,6 +386,7 @@ const Catalog = () => {
{thread.content ? `: ${thread.content}` : null} {thread.content ? `: ${thread.content}` : null}
</div> </div>
</div> </div>
</Link>
)})} )})}
</InfiniteScroll> </InfiniteScroll>
)} )}