mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
style(home): trim thread titles
This commit is contained in:
@@ -30,8 +30,13 @@ const PopularThreadCard = ({ post, boardTitle, boardShortAddress }: PopularThrea
|
|||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.threadContent}>
|
<div className={styles.threadContent}>
|
||||||
{title && <b>{title}</b>}
|
{title && (
|
||||||
{content && (content.length > 99 ? `: ${content.substring(0, 99)}...` : `: ${content}`)}
|
<>
|
||||||
|
<b>{title.trim()}</b>
|
||||||
|
{content && ': '}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
{content && (content.length > 99 ? `${content.substring(0, 99).trim()}...` : `${content}`)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user