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>
|
||||
</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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user