add diff hover to star count on a score
All checks were successful
deploy / deploy (push) Successful in 54s
All checks were successful
deploy / deploy (push) Successful in 54s
This commit is contained in:
parent
7999640f24
commit
5447db55b8
@ -83,10 +83,20 @@ export default function Score({
|
||||
}}
|
||||
>
|
||||
{leaderboard.ranked ? (
|
||||
<div className="flex items-center justify-center gap-[2px]">
|
||||
<StarIcon width={13} height={13} />
|
||||
{leaderboard.stars.toFixed(2)}
|
||||
</div>
|
||||
<Tooltip>
|
||||
<TooltipTrigger>
|
||||
<div className="flex items-center justify-center gap-[2px]">
|
||||
<StarIcon width={13} height={13} />
|
||||
{leaderboard.stars.toFixed(2)}
|
||||
</div>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>
|
||||
<div>
|
||||
<p className="font-bold">Difficulty</p>
|
||||
<p>{diffName}</p>
|
||||
</div>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
) : (
|
||||
<p>{diffName}</p>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user