From 29a647a5ee54ac093a5710efa0b308081f52158d Mon Sep 17 00:00:00 2001 From: Greg V Date: Tue, 2 Jun 2026 20:51:10 -0700 Subject: [PATCH] Fix truncated stat labels in Hackathon Leaderboard The "General Statistics" cards clipped labels like "GitHub Commits", "Pull Requests", and "Contributors" in narrow column layouts. The horizontal card layout (icon beside number+label) gave the label box too little width; it overflowed the card and was clipped by overflow:hidden, and StatLabel's nowrap+ellipsis truncated it. - StatLabel: drop nowrap/overflow/ellipsis, add overflowWrap:break-word so labels wrap instead of truncating. - Stat card body: stack the icon above the number+label (column layout at all breakpoints) so each label gets the full card width. Co-Authored-By: Claude Opus 4.8 --- .../Hackathon/HackathonLeaderboard.js | 50 +++++++++---------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/src/components/Hackathon/HackathonLeaderboard.js b/src/components/Hackathon/HackathonLeaderboard.js index 32e4b78..d853f4d 100644 --- a/src/components/Hackathon/HackathonLeaderboard.js +++ b/src/components/Hackathon/HackathonLeaderboard.js @@ -75,9 +75,7 @@ const StatLabel = styled(Typography)(({ theme }) => ({ color: 'var(--muted, #5B6270)', textAlign: 'center', width: '100%', - whiteSpace: 'nowrap', - overflow: 'hidden', - textOverflow: 'ellipsis', + overflowWrap: 'break-word', })); const AchievementCard = styled(Box)(({ theme }) => ({ @@ -585,44 +583,44 @@ const HackathonLeaderboard = ({ placement="top" > - {renderIcon(stat.icon, { fontSize: "large", sx: { color: "var(--accent, #E2552E)" } })} - - {stat.value.toLocaleString()} -