Fix navbar crowding at intermediate viewport sizes#225
Fix navbar crowding at intermediate viewport sizes#225nate-double-u with Copilot wants to merge 5 commits into
Conversation
✅ Deploy Preview for contribute-cncf-io ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Add responsive CSS media queries to reduce item padding, font size, logo height, and search box width between 997px and 1279px viewport widths. This prevents navbar items from appearing crowded without removing any menu items. Co-authored-by: nate-double-u <4453979+nate-double-u@users.noreply.github.com>
Reclaim space from logo and search box instead of squeezing item padding. Reduces navbar container padding, logo height, and search width more aggressively so menu items can maintain better visual separation at intermediate viewport sizes (997px–1279px). Co-authored-by: nate-double-u <4453979+nate-double-u@users.noreply.github.com>
Revised the approach in a130d62 — instead of just squeezing item padding (which kept items fitting but looking packed), I now reclaim space more aggressively from the logo and search box so menu items can maintain better visual separation:
|
At 1280px without responsive CSS, all items fill the navbar with zero gap between the left and right groups, losing the left/right menu divide. Added a gentle breakpoint that reduces item padding (0.75rem→0.625rem) and search width (200px→10rem) to maintain visible group separation at this range. Co-authored-by: nate-double-u <4453979+nate-double-u@users.noreply.github.com>
The issue was at 1280px — my responsive CSS previously stopped at 1279px, so at exactly 1280px all items reverted to full-size defaults, filling the entire navbar width with zero gap between the left and right groups. Added a new gentle breakpoint for 1280–1399px in 589aeea that reduces item padding ( |





Navbar items collide at viewport widths between 997px (mobile breakpoint) and ~1400px due to default Infima padding, full-size logo, and 200px search input competing for space.
Added three responsive breakpoints in
src/css/custom.cssthat progressively reclaim space from the logo, search box, and navbar container padding so menu items can maintain proper visual separation:0.75rem→0.625rem, search width→10rem1rem→0.5rem, item padding0.75rem→0.5rem, font size→0.875rem, logo height2.5rem→1.75rem, search width→7rem→0.4rem, font size→0.8rem, logo height→1.5rem, search width→6remNo menu items removed. Left/right divide preserved. Desktop (≥1400px) and mobile (≤996px) unaffected.
Before (1024px)
After (1024px)
After (1280px)
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.