fix(catalog filter): force show op comment for text-only threads

This commit is contained in:
Tom (plebeius.eth)
2024-06-19 14:50:31 +02:00
parent d9234c4e2a
commit da86c2f17f
2 changed files with 4 additions and 3 deletions
+3 -1
View File
@@ -197,6 +197,8 @@ const CatalogPost = ({ post }: { post: Comment }) => {
'--maxHeight': maxHeight,
} as React.CSSProperties;
const isTextOnlyThread = !hasThumbnail || isRules;
return (
<>
<div className={`${styles.post} ${imageSize === 'Large' ? styles.large : ''}`} style={CSSProperties}>
@@ -244,7 +246,7 @@ const CatalogPost = ({ post }: { post: Comment }) => {
<PostMenuDesktop post={post} />
</span>
</div>
{showOPComment && (hasThumbnail ? postContent : <Link to={postLink}>{postContent}</Link>)}
{(showOPComment || isTextOnlyThread) && (hasThumbnail ? postContent : <Link to={postLink}>{postContent}</Link>)}
</div>
</div>
{hoveredCid === cid &&