Fix sidebar visual bug on the sidebar navigation when scrolling down multiple times#912
Open
CyberCrypter wants to merge 2 commits intoDavidHDev:mainfrom
Open
Fix sidebar visual bug on the sidebar navigation when scrolling down multiple times#912CyberCrypter wants to merge 2 commits intoDavidHDev:mainfrom
CyberCrypter wants to merge 2 commits intoDavidHDev:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes a visual bug in the sidebar navigation caused by scrolling, by switching the ::before pseudo-element from fixed to absolute positioning and adding overflow/scroll containment properties.
Changes:
- Changed sidebar
::beforegradient overlay fromfixedtoabsolutepositioning and addedposition: relative+ overflow controls to.sidebarfor proper containment. - Improved
.sidebar-itemlayout with explicit sizing,white-space: nowrap, andoverflow: hidden; prevented.updated-tagfrom shrinking. - Commented out (rather than removed) padding-left transition rules and added a redundant transition declaration on hover.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/css/sidebar.css | Fix gradient overlay positioning, add overflow containment, and improve sidebar item layout stability |
| src/css/transitions.css | Disable padding-left hover transition (commented out) and add redundant hover transition |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.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.
This pull request makes several improvements to the sidebar styling, focusing on layout stability, overflow handling, and visual consistency for sidebar items and tags. The changes help ensure the sidebar displays correctly across different screen sizes and content types, and improve the appearance and usability of sidebar elements.
Sidebar layout and overflow improvements:
.sidebar::beforepositioning fromfixedtoabsolute, and adjusted its sizing to better fit the sidebar container, improving gradient rendering and layout stability..sidebartoposition: relativeand addedoverflow-x: hiddenandoverscroll-behavior: containto prevent horizontal scrolling and improve containment of scroll events.Sidebar item appearance and usability:
.sidebar-itemstyling by adding spacing (gap), minimum height, consistent line height, full width, and overflow handling to ensure items display neatly and do not wrap unexpectedly..sidebar-item .updated-tagby adjustingline-heightand addingflex-shrink: 0to maintain tag shape and prevent shrinking when space is limited.Transition and hover effects:
transitions.css, possibly to simplify or standardize hover effects and avoid layout shifts.