From 616646c0d9486c5478cab444935a68ebe14b2670 Mon Sep 17 00:00:00 2001 From: Nikhil Nawgiri Date: Sat, 2 Nov 2024 16:23:02 +0100 Subject: [PATCH] Truncate item title --- fe/src/components/search/SearchResultItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/src/components/search/SearchResultItem.tsx b/fe/src/components/search/SearchResultItem.tsx index 4678472..9377b7f 100644 --- a/fe/src/components/search/SearchResultItem.tsx +++ b/fe/src/components/search/SearchResultItem.tsx @@ -44,7 +44,7 @@ const SearchResultItem = ({ {year.substring(0, 4)}
- {title} + {title.length > 40 ? `${title.substring(0, 40)}...` : title}
{Object.values(itemStatusInLibrary)[Math.floor(Math.random() * Object.values(itemStatusInLibrary).length)]}