From 5b1d3ee8ed3b771c55eebc4a04c34a8c86637e5c Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Thu, 4 Jul 2024 12:14:14 +0200 Subject: [PATCH] style(home): trim thread titles --- .../home/popular-threads-box/popular-threads-box.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/home/popular-threads-box/popular-threads-box.tsx b/src/views/home/popular-threads-box/popular-threads-box.tsx index 338dc4c8..6e6a58ae 100644 --- a/src/views/home/popular-threads-box/popular-threads-box.tsx +++ b/src/views/home/popular-threads-box/popular-threads-box.tsx @@ -30,8 +30,13 @@ const PopularThreadCard = ({ post, boardTitle, boardShortAddress }: PopularThrea
- {title && {title}} - {content && (content.length > 99 ? `: ${content.substring(0, 99)}...` : `: ${content}`)} + {title && ( + <> + {title.trim()} + {content && ': '} + + )} + {content && (content.length > 99 ? `${content.substring(0, 99).trim()}...` : `${content}`)}
);