Skip to content

fix: header navbar overflow between 480-768px viewport widths - #99

Merged
sajeetharan merged 2 commits into
sajeetharan:mainfrom
HereIsMuhammad:fix/header-mobile-responsive
Aug 10, 2026
Merged

fix: header navbar overflow between 480-768px viewport widths#99
sajeetharan merged 2 commits into
sajeetharan:mainfrom
HereIsMuhammad:fix/header-mobile-responsive

Conversation

@HereIsMuhammad

Copy link
Copy Markdown
Contributor

The problem

The header (navbar) starts compacting at the 768px breakpoint (reduced padding, subtitle hidden), but the button labels ("Add Me To Globe", "Star", "Sponsor") only collapsed to icon-only at 480px. That left a dead zone between 481px and 767px where the header was already tight but every button still showed full text, overflowing the compacted header on many phones and tablets.

The fix

  • Moved the icon-only button collapse (hiding .btn__label, turning "Add Me To Globe" into a circular icon button) from the 480px breakpoint to the 768px breakpoint, so the whole header compacts together at one point instead of two mismatched ones.
  • Made .header__brand (logo + title + subtitle) shrink and truncate with ellipsis instead of pushing the action buttons off-screen, as a safety net at very narrow widths like 320px.

Only styles/main.css changed, no markup or behavior changes.

Verified

  • Syntax-checked and brace-balance-checked the stylesheet.
  • Traced the breakpoint logic by hand to confirm the header now compacts as a single unit at 768px instead of two separate, mismatched breakpoints.
  • Not visually verified in a real browser in this sandbox (no working npm install here). Worth a quick check in DevTools responsive mode across ~400px to 800px widths before merge, since that's exactly the range this fixes.

- align button label/icon collapse breakpoint (was 480px) with the
  header's own compact-mode breakpoint (768px), removing a dead zone
  where the header was compacted but buttons still showed full text
- make header__brand shrink/truncate before pushing action buttons
  off-screen at very narrow widths
@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

@HereIsMuhammad is attempting to deploy a commit to the sajeetharan's projects Team on Vercel.

A member of the Team first needs to authorize it.

@HereIsMuhammad
HereIsMuhammad force-pushed the fix/header-mobile-responsive branch from b792a51 to 755dcaf Compare August 10, 2026 11:42
@sajeetharan
sajeetharan merged commit 533369f into sajeetharan:main Aug 10, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants