fix(catalog post): display title inline

This commit is contained in:
Tom (plebeius.eth)
2024-06-15 18:14:48 +02:00
parent e860593650
commit 9ebf3b79b6
3 changed files with 14 additions and 11 deletions
+1 -8
View File
@@ -175,14 +175,7 @@ const CatalogPost = ({ post }: { post: Comment }) => {
const postContent = (
<div className={`${styles.teaser} ${hidden && styles.hidden}`}>
{hidden ? (
<b>({t('hidden')})</b>
) : (
<>
<b>{title && `${title}${content ? ': ' : ''}`}</b>
<Markdown content={content} spoiler={spoiler} />
</>
)}
{hidden ? <b>({t('hidden')})</b> : <Markdown title={title} content={content} spoiler={spoiler} />}
</div>
);