Update LeaderboardSection component: Change text truncation to word breaking for better display of long entries in leaderboard.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m28s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m28s
This commit is contained in:
@@ -103,7 +103,7 @@ export default function LeaderboardSection({
|
|||||||
onClick={() => setSelectedEntry(entry)}
|
onClick={() => setSelectedEntry(entry)}
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className={`font-bold text-xs sm:text-sm truncate ${
|
className={`font-bold text-xs sm:text-sm break-words ${
|
||||||
entry.rank <= 3 ? "text-pixel-gold" : "text-white"
|
entry.rank <= 3 ? "text-pixel-gold" : "text-white"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user