Fix MainNavigation scrollbar overlapping sidebar icons#5307
Fix MainNavigation scrollbar overlapping sidebar icons#5307
Conversation
Co-authored-by: thomasdax98 <13380047+thomasdax98@users.noreply.github.com>
|
@copilot The issue persists: try again |
Co-authored-by: thomasdax98 <13380047+thomasdax98@users.noreply.github.com>
The root cause was Fixed in 56cea57: |
|
@copilot The problem persists. Try an approach similar to this: .sidebar { .sidebar::-webkit-scrollbar { |
Co-authored-by: thomasdax98 <13380047+thomasdax98@users.noreply.github.com>
Applied in db28ca9. |

When the navigation sidebar contains enough items to overflow, the scrollbar renders on top of the content instead of reserving space, causing it to overlap sidebar icons.
Changes
MainNavigation.styles.ts: Addedoverflow-y: auto,scrollbar-width: none, and&::-webkit-scrollbar { display: none }togetSharedStyles(). The sidebar remains fully scrollable when content overflows, but the scrollbar track is hidden on all browsers (Firefox and WebKit/Chromium), preventing any space reservation or icon overlap in both the collapsed (60px) and expanded states.Menu.stories.tsx: AddedMenuWithManyItemsstory with 20+ items across four groups (Content, Communication, Structure, Settings) to make the scrolling behavior visible and verifiable in Storybook.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.