fix(docs): polish sidebar scroll state#24
Open
vyctorbrzezowski wants to merge 1 commit into
Open
Conversation
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
This polishes the docs site's left sidebar behavior without changing documentation content.
Behavior notes
The important change is stateful. On a long sidebar, the page content can be correct while the left nav still starts at the top, leaving the active item hidden several screens below the visible rail. This is most noticeable when opening a deep docs URL directly or after client-side navigation updates the active item.
Automated browser check on
/tools/kimi-search/, using the same 1024x720 viewport:scrollTopstayed at0; the activeKimi searchlink was at3535pxand not visible inside the sidebar.2764; the activeKimi searchlink lands around418px, visible near the middle of the rail.Visual proof
Same page, viewport, theme, and crop. The screenshots are focused on the sidebar but keep enough page context to show the relationship to the content.
Full evidence page: https://scarlet-silence-af4p.here.now/
Validation
git diff --checknode --check scripts/docs-site/assets.mjsnode --check scripts/docs-site/smoke.mjsmake docs-check-shell