fix mini hover on player
All checks were successful
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m11s
All checks were successful
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m11s
This commit is contained in:
@ -97,11 +97,11 @@ export default function Mini({ type, player, shouldUpdate }: MiniProps) {
|
||||
<Link
|
||||
key={index}
|
||||
href={`/player/${playerRanking.id}`}
|
||||
className="grid gap-2 grid-cols-[auto_1fr_auto] items-center bg-accent px-2 py-1.5 cursor-pointer transform-gpu transition-all hover:brightness-[66%] first:rounded-t last:rounded-b"
|
||||
className="grid gap-2 grid-cols-[auto_1fr_auto] items-center bg-accent px-2 py-1.5 cursor-pointer transform-gpu transition-all hover:brightness-75 first:rounded-t last:rounded-b"
|
||||
>
|
||||
<p className="text-gray-400">#{formatNumberWithCommas(rank)}</p>
|
||||
<div className="flex gap-2 items-center">
|
||||
<PlayerInfo player={playerRanking} highlightedPlayer={player} hideCountryFlag />
|
||||
<PlayerInfo player={playerRanking} highlightedPlayer={player} hideCountryFlag hoverBrightness={false} />
|
||||
</div>
|
||||
<div className="inline-flex min-w-[11.5em] gap-2 items-center">
|
||||
<p className="text-pp text-right">{formatPp(playerRanking.pp)}pp</p>
|
||||
|
Reference in New Issue
Block a user