Skip to content

Fix: Navbar overflow and cut-off at medium breakpoints#24

Open
AliHaiderBajwa wants to merge 1 commit into
Prime-Innovators:mainfrom
AliHaiderBajwa:fix/navbar-responsive-cutoff
Open

Fix: Navbar overflow and cut-off at medium breakpoints#24
AliHaiderBajwa wants to merge 1 commit into
Prime-Innovators:mainfrom
AliHaiderBajwa:fix/navbar-responsive-cutoff

Conversation

@AliHaiderBajwa

Copy link
Copy Markdown

Summary

This PR fixes the responsive bug where the right-side elements (GitHub icon + "Join the Waitlist" button) were getting cut off or pushed out of the viewport at screen widths between 768px and 1024px.

Root Cause

The center navigation pill (containing "Home", "Ecosystem", "About", "Blog", "Contact") lacked overflow-hidden and whitespace-nowrap. When the viewport shrank, the text inside the pill would spill out of its borders and push the right-side buttons off-screen.

Changes Made

  • Parent container: Tightened gap-3gap-2 md:gap-1.5 for better spacing at tablet sizes.
  • Inner pill container: Added overflow-hidden to clip text inside borders, reduced padding (px-2 md:px-1.5, py-1 md:py-0.5), and reduced font size (text-sm md:text-xs).
  • Right wrapper: Added min-w-0 to allow proper flex shrinking (override default min-width: auto).
  • Nav links: Added whitespace-nowrap to prevent text wrapping to a second line.

Testing

  • Manually tested by resizing browser window from 1200px down to 768px.
  • Verified all items remain visible and accessible at 820px, 900px, 1000px, and 768px.
  • Confirmed desktop (>1024px) and mobile (<768px) layouts are unaffected.

Screenshots

Before:
before
After:
after

- Added overflow-hidden to inner pill to clip overflowing text
- Added whitespace-nowrap to nav links to prevent wrapping
- Tightened gaps and padding at md breakpoint
- Fixes Prime-Innovators#23
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.

1 participant