Skip to content

Commit

Permalink
displaying full names on hover for long names only (#8972)
Browse files Browse the repository at this point in the history
  • Loading branch information
SwanandBhuskute authored Nov 6, 2024
1 parent bbcfef0 commit 4f775ad
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/components/Assets/AssetsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,19 @@ const AssetsList = () => {
className="text-2xl"
/>
</span>
<p
className="w-48 truncate"
data-testid="created-asset-list-name"
>
{asset.name}
</p>
<div className="tooltip w-48">
<p
className="truncate"
data-testid="created-asset-list-name"
>
{asset.name}
</p>
{asset.name.length > 20 && (
<span className="tooltip-text tooltip-top -translate-x-1/2">
{asset.name}
</span>
)}
</div>
</p>
</div>
<p className="text-sm font-normal">
Expand Down

0 comments on commit 4f775ad

Please sign in to comment.