Skip to content

Commit

Permalink
fix(most-active-users): remove title attr and change tooltip content …
Browse files Browse the repository at this point in the history
…color
  • Loading branch information
tfkhdyt committed Jul 7, 2024
1 parent f1b954e commit ae91692
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/_components/sidebar/most-active-users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,20 @@ export function MostActiveUsers({
className='max-w-[10rem] cursor-pointer truncate font-medium decoration-2 hover:underline md:max-w-[12rem] block text-base'
href={`/users/${user.username}`}
onClick={setSheetOpen}
title={user.name ?? user.username}
>
{user.name}
</Link>
<Link
className='max-w-[10rem] truncate font-normal md:max-w-[12rem] block text-base'
href={`/users/${user.username}`}
onClick={setSheetOpen}
title={`@${user.username}`}
>
@{user.username}
</Link>
</div>
</li>
</TooltipTrigger>
<TooltipContent className='my-6'>
<TooltipContent className='my-6 text-[#696984]'>
<p>Score: {score}</p>
</TooltipContent>
</Tooltip>
Expand Down

0 comments on commit ae91692

Please sign in to comment.