Repository navigation
fix(docs): use more of wide screens and simplify the header - #448
Conversation
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.
|
Warning Review limit reachedYou'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. View limit details
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. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
biggest-littlest
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
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.