Fix: navbar overlap at 1000-1200px widths - #403
Open
VinuRithika75 wants to merge 1 commit into
Open
Conversation
✅ Deploy Preview for contribute-cncf-io ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Fixes cncf#202 Signed-off-by: R.Vinu Rithika <vinurithika732006@gmail.com>
VinuRithika75
force-pushed
the
fix-navbar-overlap-202
branch
from
August 13, 2026 08:39
a4edbbc to
5a6adab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #202
Problem
The top navbar (logo + 8 nav items) overlaps at intermediate viewport
widths, roughly between 1000px and 1200px. Docusaurus only switches
to the mobile hamburger menu at 996px and below, so above that all
navbar items render in a single row — with 8 items plus the logo,
there isn't enough horizontal space in that range, causing overlap.
Fix
Added a scoped media query in
src/css/custom.csstargeting997px–1200pxonly. It tightens spacing, link padding, font-size,and logo height just enough for all items to fit on one line without
wrapping or overlapping. The normal desktop layout (>1200px) and the
mobile hamburger layout (<=996px) are untouched.
Testing
npm startlocally and resized the browser through 997px,1050px, 1100px, 1200px, and 1201px+ to confirm no overlap and no
regression at other widths.