Skip to content

Commit

Permalink
fix: title element issue on span component
Browse files Browse the repository at this point in the history
Signed-off-by: pranalidhanavade <[email protected]>
  • Loading branch information
pranalidhanavade committed Oct 8, 2024
1 parent ded532b commit d9304bd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/User/UserDashBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -605,12 +605,12 @@ const UserDashBoard = () => {
)}

<span className="flex items-center space-x-2 ml-3 text-lg font-bold text-gray-500 dark:text-white text-start truncate">
<span className="truncate"> {org?.name}</span>
<span className="truncate">{org?.name}</span>
<span>
{org.roles.includes(
OrganizationRoles.organizationOwner,
) ? (
<span title={org.roles}>
<span title={org.roles.join(", ")}>
<svg
width="24"
height="24"
Expand All @@ -631,10 +631,7 @@ const UserDashBoard = () => {
OrganizationRoles.organizationIssuer,
) ? (
<span
title={org.roles.slice(
0,
org.roles.length - 1,
)}
title={org.roles.slice(0, org.roles.length - 1).join(", ")}
>
<svg
width="24"
Expand Down

0 comments on commit d9304bd

Please sign in to comment.