Fix docs sidebar clipping on wide screens#468
Merged
Merged
Conversation
ayush00git
reviewed
Jun 14, 2026
| /* | ||
| * The menu is aligned with the centered navbar on wide screens. Keep the | ||
| * Docusaurus sidebar at least that wide, otherwise its overflow clipping | ||
| * hides the menu and the sidebar looks empty. |
Contributor
There was a problem hiding this comment.
@chaokunyang the sidebar is rendered double it's width size on the screen by it should

chaokunyang
pushed a commit
that referenced
this pull request
Jun 14, 2026
## What The docs sidebar renders at roughly double its intended width on wide screens. ## Why The previous fix (#468) widened the sidebar container by the navbar offset (`(100vw - 1280px)/2`) so the padded menu wouldn't clip. On a 1920px-wide screen that offset is ~320px, so `--doc-sidebar-width` became `300px + 320px = 620px` — about double the intended 300px. ## How - Revert `--doc-sidebar-width` to the panel width (300px). - Use the normal `--fory-doc-sidebar-inset` for the menu's left padding instead of the large navbar offset. - Remove the now-unused `--fory-doc-sidebar-offset` variable. The sidebar now stays a consistent 300px at every screen width with no clipping. Trade-off: the menu text no longer aligns under the centered navbar logo. --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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.
No description provided.