Truncate item title

This commit is contained in:
Nikhil Nawgiri 2024-11-02 16:23:02 +01:00
parent 9f6a7d38b5
commit 616646c0d9

View file

@ -44,7 +44,7 @@ const SearchResultItem = ({
{year.substring(0, 4)}
</div>
<div className="search-result-item-title">
{title}
{title.length > 40 ? `${title.substring(0, 40)}...` : title}
</div>
<div className="search-result-item-action">
{Object.values(itemStatusInLibrary)[Math.floor(Math.random() * Object.values(itemStatusInLibrary).length)]}