Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip and full asset name #7828

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/Components/Assets/AssetsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ const AssetsList = () => {
>
<div
key={asset.id}
className="border-1 h-full w-full cursor-pointer items-center justify-center rounded-lg border border-transparent bg-white p-5 shadow hover:border-primary-500"
className="border-1 h-full w-full cursor-pointer items-center justify-center rounded-lg border border-transparent bg-white p-5 shadow hover:border-primary-500 "
>
<div className="md:flex">
<p className="flex break-words text-xl font-medium capitalize">
<div className="tooltip tooltip-bottom md:flex">
<p className="flex overflow-hidden text-xl font-medium capitalize">
<span className="mr-2 text-primary-500">
<CareIcon
icon={
Expand All @@ -233,11 +233,9 @@ const AssetsList = () => {
className="text-2xl"
/>
</span>
<p
className="w-48 truncate"
data-testid="created-asset-list-name"
>
<p className="truncate" data-testid="created-asset-list-name">
{asset.name}
<span className="tooltip-text">{asset.name}</span>
</p>
</p>
</div>
Expand Down
Loading