Repository navigation
Optimize quick-nav sidebar: closer positioning, responsive width, auto-hide - #47
Merged
Merged
Conversation
…o-hide on narrow screens Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update sidebar navigation menu spacing and responsiveness
Optimize quick-nav sidebar: closer positioning, responsive width, auto-hide
Jan 31, 2026
JonasGao
approved these changes
Feb 1, 2026
There was a problem hiding this comment.
Pull request overview
This PR refines the quick navigation sidebar layout in grouping modes to improve proximity to the main content, make sizing responsive, and simplify behavior on smaller screens.
Changes:
- Introduces CSS custom properties (
--sidebar-width,--sidebar-gap) and usesclamp()to make the sidebar width responsive while keeping a tight, consistent gap to the main content. - Removes the old “inline/mobile” quick-nav layout and instead auto-hides the sidebar at
<= 1280pxviewport widths where there’s insufficient space for a floating sidebar. - Adds an XL breakpoint (
>= 1600px) to slightly enlarge the sidebar and its typography for better usability on very wide screens, with minor padding and font-size adjustments.
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.
The quick navigation sidebar in grouping modes had excessive spacing from the main content (20px gap) and used fixed widths that didn't adapt to screen size.
Changes
clamp(140px, 15vw, 200px)adapts to viewport--sidebar-widthand--sidebar-gapfor maintainabilityScreenshots
1600px - sidebar visible, minimal gap:

1200px - sidebar hidden:

Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.