fix(ui): fix text overflow

This commit is contained in:
sylenien 2022-05-20 17:20:01 +02:00 committed by Delirium
parent a06fb42e12
commit 07072f74b0

View file

@ -42,7 +42,9 @@ function SavedSearch(props) {
<div className="flex items-center ml-2">
<Icon name="search" size="14" />
<span className="color-gray-medium px-1">Viewing:</span>
<span className="font-medium" style={{ whiteSpace: 'nowrap', width: '30%'}}>{savedSearch.name}</span>
<span className="font-medium" style={{ whiteSpace: 'nowrap', width: '30%' }}>
{savedSearch.name.length > 15 ? `${savedSearch.name.slice(0, 15)}...` : savedSearch.name}
</span>
</div>
)}
</div>