fix(theme): constrain navbar width to match content area on large displays#12124
fix(theme): constrain navbar width to match content area on large displays#12124trippusultan wants to merge 1 commit into
Conversation
On wide viewports, the navbar expanded to full screen width while the main content area was constrained to --ifm-container-width-xl. This caused navbar items to appear at the far edges of the screen, requiring users to scan the entire width. Changes: - Add justify-content: center to .navbar - Add max-width: var(--ifm-container-width-xl) to .navbar__inner This aligns the navbar with the content area, footer, and other page elements, creating a consistent vertical scanning area. Closes facebook#7562
|
Hi @trippusultan! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Summary
On wide viewports, the navbar expanded to full screen width while the main content area was constrained to
--ifm-container-width-xl. This caused navbar items to appear at the far edges of the screen, requiring users to scan the entire width.Changes
justify-content: centerto.navbarmax-width: var(--ifm-container-width-xl)to.navbar__innerThis aligns the navbar with the content area, footer, and other page elements, creating a consistent vertical scanning area.
Before
Navbar items spread to the far edges of the screen on large displays.
After
Navbar is centered and constrained to the same max-width as the content area.
Closes #7562