-
Notifications
You must be signed in to change notification settings - Fork 11
[Bug]: Leaderboard header overflows on mobile screens #35
Copy link
Copy link
Open
Labels
ECSoC26Required label for a PR to be eligible for Sentinel scoringRequired label for a PR to be eligible for Sentinel scoringECSoC26-L1Easy difficulty, auto-assigned by Sentinel — 5 pointsEasy difficulty, auto-assigned by Sentinel — 5 pointsbugSomething broken or not working as describedSomething broken or not working as describedredoReviewed — needs changes before it can be mergedReviewed — needs changes before it can be merged
Description
Metadata
Metadata
Assignees
Labels
ECSoC26Required label for a PR to be eligible for Sentinel scoringRequired label for a PR to be eligible for Sentinel scoringECSoC26-L1Easy difficulty, auto-assigned by Sentinel — 5 pointsEasy difficulty, auto-assigned by Sentinel — 5 pointsbugSomething broken or not working as describedSomething broken or not working as describedredoReviewed — needs changes before it can be mergedReviewed — needs changes before it can be merged
Summary
On smaller screen sizes, the Leaderboard header (LEARNHUB://CONTRIBUTORS/LEADERBOARD) overflows its container instead of wrapping or scaling to fit. This causes horizontal overflow and affects the mobile layout.
Expected result
The header text should remain within the container.
Long text should wrap, shrink, or otherwise adapt to the available screen width.
No horizontal overflow should occur.
Actual result
The header text extends beyond the container on mobile screens.
The layout appears broken due to the overflowing title.
Steps to reproduce
Open the Contributors Leaderboard page on a mobile device or use responsive mode in DevTools (e.g., 360–430px width).
Navigate to the top of the page.
Observe the header section.
Logs / screenshots
Notes
Possible Cause
The header may have:
A fixed width or white-space: nowrap.
Missing responsive font sizing.
Insufficient overflow handling for long text.
Suggested Fix
Allow the header text to wrap (white-space: normal or overflow-wrap: anywhere).
Use responsive font sizes (e.g., clamp()).
Ensure the container width is constrained to 100% on mobile devices.
Environment
Device: Mobile (Android)
Screen Width: ~393px (or similar)
Browser: Chrome