Skip to content

Fix: navbar overlap at 1000-1200px widths - #403

Open
VinuRithika75 wants to merge 1 commit into
cncf:mainfrom
VinuRithika75:fix-navbar-overlap-202
Open

Fix: navbar overlap at 1000-1200px widths#403
VinuRithika75 wants to merge 1 commit into
cncf:mainfrom
VinuRithika75:fix-navbar-overlap-202

Conversation

@VinuRithika75

Copy link
Copy Markdown

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.css targeting
997px–1200px only. 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

  • Ran npm start locally and resized the browser through 997px,
    1050px, 1100px, 1200px, and 1201px+ to confirm no overlap and no
    regression at other widths.
  • Verified in both light and dark mode.

@VinuRithika75
VinuRithika75 requested review from a team as code owners August 9, 2026 15:37
@netlify

netlify Bot commented Aug 9, 2026

Copy link
Copy Markdown

Deploy Preview for contribute-cncf-io ready!

Name Link
🔨 Latest commit 5a6adab
🔍 Latest deploy log https://app.netlify.com/projects/contribute-cncf-io/deploys/6a7d82e06449260008f0a830
😎 Deploy Preview https://deploy-preview-403--contribute-cncf-io.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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
VinuRithika75 force-pushed the fix-navbar-overlap-202 branch from a4edbbc to 5a6adab Compare August 13, 2026 08:39
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.

Top nav logo and menu titles overlap at some widths

1 participant