Skip to content

Fix sidebar visual bug on the sidebar navigation when scrolling down multiple times#912

Open
CyberCrypter wants to merge 2 commits intoDavidHDev:mainfrom
CyberCrypter:feat/fix-sidebar-bug
Open

Fix sidebar visual bug on the sidebar navigation when scrolling down multiple times#912
CyberCrypter wants to merge 2 commits intoDavidHDev:mainfrom
CyberCrypter:feat/fix-sidebar-bug

Conversation

@CyberCrypter
Copy link

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:

  • Changed .sidebar::before positioning from fixed to absolute, and adjusted its sizing to better fit the sidebar container, improving gradient rendering and layout stability.
  • Set .sidebar to position: relative and added overflow-x: hidden and overscroll-behavior: contain to prevent horizontal scrolling and improve containment of scroll events.

Sidebar item appearance and usability:

  • Enhanced .sidebar-item styling by adding spacing (gap), minimum height, consistent line height, full width, and overflow handling to ensure items display neatly and do not wrap unexpectedly.
  • Improved .sidebar-item .updated-tag by adjusting line-height and adding flex-shrink: 0 to maintain tag shape and prevent shrinking when space is limited.

Transition and hover effects:

  • Commented out sidebar item left padding transitions in transitions.css, possibly to simplify or standardize hover effects and avoid layout shifts.

Copilot AI review requested due to automatic review settings March 14, 2026 18:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ::before gradient overlay from fixed to absolute positioning and added position: relative + overflow controls to .sidebar for proper containment.
  • Improved .sidebar-item layout with explicit sizing, white-space: nowrap, and overflow: hidden; prevented .updated-tag from 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants