Skip to content

fix(theme): constrain navbar width to match content area on large displays#12124

Open
trippusultan wants to merge 1 commit into
facebook:mainfrom
trippusultan:fix/navbar-width-consistency
Open

fix(theme): constrain navbar width to match content area on large displays#12124
trippusultan wants to merge 1 commit into
facebook:mainfrom
trippusultan:fix/navbar-width-consistency

Conversation

@trippusultan

Copy link
Copy Markdown

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

  • 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.

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

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
@meta-cla

meta-cla Bot commented Jun 8, 2026

Copy link
Copy Markdown

Hi @trippusultan!

Thank you for your pull request and welcome to our community.

Action Required

In 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.

Process

In 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 CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@netlify

netlify Bot commented Jun 8, 2026

Copy link
Copy Markdown

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit 3c4c8d1
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/6a267b0f226058000818cdf0
😎 Deploy Preview https://deploy-preview-12124--docusaurus-2.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.

@meta-cla

meta-cla Bot commented Jun 8, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla Bot added the CLA Signed Signed Facebook CLA label Jun 8, 2026
@meta-cla

meta-cla Bot commented Jun 8, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Making navbar width consistent with the main layout on large displays

1 participant