Skip to content
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

Hide sub-navigation on mobile to stop screen flickering while scrolling #6080

Merged
merged 2 commits into from Jan 24, 2023

Conversation

nielthiart
Copy link
Contributor

Fixes #3666

The sidebar appears above the content on screen sizes below 900px wide.

As we scroll down the page, sub-menus in the sidebar become active.

This pushes content down which deactivates the sub-menu, causing a loop.

An alternative solution would be to always display sub-navigation on screens below 900px, but this pushes content way down pages with many nav items, which is probably not ideal.

@netlify
Copy link

netlify bot commented Jan 24, 2023

Deploy Preview for sourcegraph-handbook ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 549bfd8
🔍 Latest deploy log https://app.netlify.com/sites/sourcegraph-handbook/deploys/63cff26ea071f200098584ef
😎 Deploy Preview https://deploy-preview-6080--sourcegraph-handbook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Ref: sourcegraph#3666

The sidebar appears above the content on screen sizes below 900px wide.

As we scroll down the page, sub-menus in the sidebar become active.

This pushes content down which deactivates the sub-menu, causing a loop.
@sqs
Copy link
Member

sqs commented Jan 24, 2023

I confirmed this fixes the issue for me locally.

@sqs sqs merged commit ec9b076 into sourcegraph:main Jan 24, 2023
@sqs
Copy link
Member

sqs commented Jan 24, 2023

Thank you so much, @nielthiart!

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.

Mobile scrolling bug
2 participants