Skip to content

fix(navbar): scale layout responsively on wide desktop screens - #1686

Open
singhanurag0317-bit wants to merge 1 commit into
souma9830:masterfrom
singhanurag0317-bit:feat/issue-1419
Open

fix(navbar): scale layout responsively on wide desktop screens#1686
singhanurag0317-bit wants to merge 1 commit into
souma9830:masterfrom
singhanurag0317-bit:feat/issue-1419

Conversation

@singhanurag0317-bit

Copy link
Copy Markdown

Closes #1419

What

On wide desktop screens (above ~1440px) the floating navbar kept a fixed-width appearance, leaving excessive empty space on both sides.

Changes

  • Added frontend/src/components/layout/NavbarResponsive.css with dedicated wide-screen media queries:
    • 1200px–1440px: navbar fills up to min(92%, 1200px).
    • >=1441px: navbar scales to min(88%, 1400px) and nav links are distributed evenly with justify-content: space-evenly + balanced gap.
  • Imported the stylesheet in Navbar.jsx.
  • Kept the rules in a dedicated stylesheet so the wide-screen behavior stays isolated and readable.
  • Added NavbarResponsive.test.jsx (3 tests) verifying brand, link distribution, and theme classes.

Verification

  • npx vitest run src/test/__tests__/NavbarResponsive.test.jsx — 3 passed.

@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

@singhanurag0317-bit is attempting to deploy a commit to the souma9830's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Improve Navbar Responsiveness on Wide Desktop Screens

1 participant