feat(catalog post): allow selecting text in posts with media thumbnails

This commit is contained in:
Tom (plebeius.eth)
2024-06-08 12:16:01 +02:00
parent 2a5ecf90ee
commit a7c7464077
+8 -6
View File
@@ -155,6 +155,13 @@ const CatalogPost = ({ post }: { post: Comment }) => {
subplebbitAddress,
});
const postContent = (
<div className={styles.teaser}>
<b>{title && `${title}${content ? ': ' : ''}`}</b>
{content}
</div>
);
return (
<>
<div className={styles.post}>
@@ -192,12 +199,7 @@ const CatalogPost = ({ post }: { post: Comment }) => {
<PostMenuDesktop post={post} />
</span>
</div>
<Link to={postLink}>
<div className={styles.teaser}>
<b>{title && `${title}${content ? ': ' : ''}`}</b>
{content}
</div>
</Link>
{hasThumbnail ? postContent : <Link to={postLink}>{postContent}</Link>}
</div>
</div>
{hoveredCid === cid &&