-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix: enable independent scrolling in sidebar navigation #8846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||||
| @reference "../../styles/index.css"; | ||||||||
|
|
||||||||
| .wrapper { | ||||||||
| @apply ml:max-w-xs | ||||||||
| @apply ml:max-w-xs | ||||||||
| ml:overflow-auto | ||||||||
| ml:border-r | ||||||||
| scrollbar-thin | ||||||||
|
|
@@ -16,18 +16,21 @@ | |||||||
| bg-white | ||||||||
| px-4 | ||||||||
| pt-6 | ||||||||
| 2xl:px-6 | ||||||||
| 2xl:px-6 | ||||||||
| dark:border-neutral-900 | ||||||||
| dark:bg-neutral-950; | ||||||||
|
|
||||||||
| .navigation { | ||||||||
| @apply ml:flex | ||||||||
| .navigation { | ||||||||
| @apply ml:flex | ||||||||
|
||||||||
| @apply ml:flex | |
| @apply ml:flex | |
| min-h-0 |
Copilot
AI
Apr 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scroll-smooth applies smooth scrolling even when the user has prefers-reduced-motion enabled. Elsewhere in the codebase smooth scrolling is gated behind motion-safe: (e.g., packages/ui-components/src/styles/base.css:14, Containers/Article/index.module.css:39). Consider switching this to motion-safe:scroll-smooth for consistency and accessibility.
| scroll-smooth | |
| motion-safe:scroll-smooth |
Copilot
AI
Apr 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.wrapper already applies ml:overflow-auto, and .navigation now adds overflow-y-auto. This creates nested scroll containers on desktop, which commonly leads to double scrollbars / scroll-wheel trapping. If the intent is for the navigation sections to handle scrolling, consider removing or changing the wrapper’s desktop overflow (e.g., to ml:overflow-hidden) so only the intended element scrolls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation in this file is inconsistent with the surrounding CSS module conventions (generally two-space indentation for
@applyblocks, e.g.Containers/Footer/index.module.css:4). The extra leading spaces here look accidental and make the file harder to scan; please normalize indentation in this block.