style(home): trim thread titles

This commit is contained in:
Tom (plebeius.eth)
2024-07-04 12:14:14 +02:00
parent 80836302f6
commit 5b1d3ee8ed
@@ -30,8 +30,13 @@ const PopularThreadCard = ({ post, boardTitle, boardShortAddress }: PopularThrea
</Link>
</div>
<div className={styles.threadContent}>
{title && <b>{title}</b>}
{content && (content.length > 99 ? `: ${content.substring(0, 99)}...` : `: ${content}`)}
{title && (
<>
<b>{title.trim()}</b>
{content && ': '}
</>
)}
{content && (content.length > 99 ? `${content.substring(0, 99).trim()}...` : `${content}`)}
</div>
</div>
);