fix ranking for high pp differences
All checks were successful
Deploy / deploy (push) Successful in 5m5s

This commit is contained in:
Lee 2024-10-02 09:37:43 +01:00
parent 9a6583069b
commit ca323287ba

@ -159,7 +159,7 @@ export default function Mini({ type, player, shouldUpdate }: MiniProps) {
</Avatar> </Avatar>
<p className={playerRanking.id === player.id ? "text-pp font-semibold" : ""}>{playerName}</p> <p className={playerRanking.id === player.id ? "text-pp font-semibold" : ""}>{playerName}</p>
</div> </div>
<div className="inline-flex min-w-[10.75em] gap-2 items-center"> <div className="inline-flex min-w-[11.5em] gap-2 items-center">
<p className="text-pp text-right">{formatPp(playerRanking.pp)}pp</p> <p className="text-pp text-right">{formatPp(playerRanking.pp)}pp</p>
{playerRanking.id !== player.id && ( {playerRanking.id !== player.id && (
<p className={`text-xs text-right ${ppDifference > 0 ? "text-green-400" : "text-red-400"}`}> <p className={`text-xs text-right ${ppDifference > 0 ? "text-green-400" : "text-red-400"}`}>