From 7b293b3eff7bed3a0f43d69fe589d77e9c958b65 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 28 Oct 2023 18:47:05 +0100 Subject: [PATCH] make leaderboard look better on mobile --- .../leaderboard/LeaderboardScore.tsx | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/components/leaderboard/LeaderboardScore.tsx b/src/components/leaderboard/LeaderboardScore.tsx index 5dd47b5..bc9c16b 100644 --- a/src/components/leaderboard/LeaderboardScore.tsx +++ b/src/components/leaderboard/LeaderboardScore.tsx @@ -24,7 +24,7 @@ export default function LeaderboardScore({ const accuracy = ((score.baseScore / leaderboard.maxScore) * 100).toFixed(2); return ( -
+

#{formatNumber(score.rank)}

@@ -59,25 +59,23 @@ export default function LeaderboardScore({
-
+
{/* PP */} -
- {score.pp > 0 && ( - - )} - - {/* Percentage score */} + {score.pp > 0 && ( -
+ )} + + {/* Percentage score */} +
);