Skip to content

Conversation

@Bushuo
Copy link
Contributor

@Bushuo Bushuo commented Feb 6, 2026

This fixes the scroll lock when clicking on sidebar links in the right sidebar.

The problem is, we only want scroll-lock on mobile viewports, because the sidebar (dropdown nav menu) overlays the screen there. On other viewport sizes the sidebar is in a different location and always open.

Because the sidebar component is heavily reused I could not figure out a cleaner solution without media queries.

@fhammerschmidt fhammerschmidt added ok-to-deploy Trigger deployment if you are sure a PR is safe to deploy. and removed ok-to-deploy Trigger deployment if you are sure a PR is safe to deploy. labels Feb 6, 2026
@mediremi mediremi self-requested a review February 6, 2026 10:34
Copy link
Member

@mediremi mediremi left a comment

Choose a reason for hiding this comment

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

I tested these changes locally in Firefox at both desktop & mobile viewports, works great 🚀

@jderochervlk
Copy link
Collaborator

Because the sidebar component is heavily reused I could not figure out a cleaner solution without media queries.

I've been running into this issue. It's hard to move things around or add to the navigation right now because of this. I tried to do a refactor in place, but it was too difficult to get it correct for each template.

This fix is good for now, and I'm planning on breaking up the sidebar layouts into more focused templates and reusable components.

@fhammerschmidt fhammerschmidt merged commit 68b8896 into rescript-lang:master Feb 6, 2026
1 of 2 checks passed
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.

4 participants