Skip to content

fix(docs): use more of wide screens and simplify the header - #448

Merged
scttbnsn merged 4 commits into
dev/v1.0from
fix/docs-width
Nov 2, 2026
Merged

scttbnsn merged 4 commits into
dev/v1.0from
fix/docs-width

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

The docs left about 244px of blank space on each side of a 16-inch MacBook (1728px). The layout width goes from 1240px to 1600px, and the header and footer content now follow it above 720px, so the logo lines up with the sidebar content at 1440, 1728 and 2056. Mobile is unchanged.

The article cap goes from 780px to 900px. With the wider layout, 780px just moved the empty space inside the page (about 160px each side at 1728). At 900px it's about 100px and the lines still read fine.

Compare is gone from the docs header and its mobile menu. It stays in the docs footer and on the marketing site. The theme toggle moved to the bottom of the sidebar (the mobile drawer included), with the same storage key, data-mode and aria-pressed behavior. The docs have no search by design, so there's nothing to move or add there.

Checked headless on a production build at 1440, 1728, 2056 and 375, both themes: no horizontal overflow and the TOC rail shows from 1440. New Playwright tests cover the toggle and the header. Playwright (45), lint, web tests, build and the page-weight budget pass.

Raise the Fumadocs layout width from 1240px to 1600px and the article cap from 780px to 900px.
Compare stays in the docs footer and the website nav.
The toggle now sits in the Fumadocs sidebar footer, which the mobile drawer also renders. Same theme storage key, data-mode and aria-pressed behavior.
Header and footer content follow the 1600px layout above 720px so the logo lines up with the sidebar content.
@coderabbitai

coderabbitai Bot commented Nov 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between e53be6b and 453645e.

Files ignored due to path filters: 1
  • CHANGELOG.md is excluded by !CHANGELOG.md
Files selected for processing: 4
  • docs/src/app/globals.css
  • docs/src/app/layout.tsx
  • docs/src/components/site-header.tsx
  • e2e/docs.spec.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving 453645e. A subagent review found the code clean: one toggle copy is mounted at a time, nothing overflows from 375 to 2400 wide, no docs CSS leaks into the website, and Compare is gone from the docs header. The CHANGELOG bullets go in v1.0.4, which is not cut yet. Required checks are green.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving 453645e. A subagent review found the code clean: one toggle copy is mounted at a time, nothing overflows from 375 to 2400 wide, no docs CSS leaks into the website, and Compare is gone from the docs header. The CHANGELOG bullets go in v1.0.4, which is not cut yet. Required checks are green.

@scttbnsn
scttbnsn merged commit da6d1c3 into dev/v1.0 Nov 2, 2026
37 checks passed
@scttbnsn
scttbnsn deleted the fix/docs-width branch November 2, 2026 17:11
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.

3 participants