fix: make docs home page scrollbar span full page width#388
Merged
Conversation
The home page rendered its vertical scrollbar inside a centered 1152px-wide .main-content box, so it appeared inset from the page's right edge. Let .main-content fill its parent so it owns the scrollbar at the page edge, and move the max-width/centering onto a new inner .home-container wrapper so the content stays centered. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Qusic
approved these changes
Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The docs home page (
/docs) rendered its vertical scrollbar inset from the page's right edge instead of at the page edge.The home
<main class="main-content">owns the page's vertical scrollbar (overflow-y: auto), but it also carried an inlinestyle="max-width:1152px;margin:0 auto;". That centered the scroll container at 1152px, so its scrollbar floated inside that box rather than at the page edge.Fix
max-width/marginfrom.main-contenton the home page so it fills its parent and owns the scrollbar at the page's right edge..home-containerwrapper (max-width: 1152px; margin: 0 auto;) so the hero, feature grid, and footer stay centered.Only the
webui-pressdocs-site template assets changed (docs.css,index.html); no Rust, public API, protocol, or CLI behavior is affected. Non-home pages already use.main-contentat full width and are untouched.Verification
dist/index.html/dist/docs.cssreflect the change..main-contentnow spans the full page width with its ~15px scrollbar flush at the right edge (right === pageWidth);.home-containerstays 1152px centered. Mobile width and a non-home guide page render correctly with no console errors.Closes #374