Skip to content

[Bug]: Leaderboard header overflows on mobile screens #35

Description

@gauri9368gupta-maker

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

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ECSoC26Required label for a PR to be eligible for Sentinel scoringECSoC26-L1Easy difficulty, auto-assigned by Sentinel — 5 pointsbugSomething broken or not working as describedredoReviewed — needs changes before it can be merged

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions