-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Stops content pushing on windows browsers due to overflow-y #5513
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
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.
LGTM - looks super annoying nice fix :D
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.
Self review added
@@ -344,7 +344,7 @@ export default function SettingsLayout({ | |||
SettingsSidebarContainer={ | |||
<div | |||
className={classNames( | |||
"fixed inset-y-0 z-50 m-0 h-screen transform overflow-y-scroll border-gray-100 bg-gray-50 transition duration-200 ease-in-out", | |||
"fixed inset-y-0 z-50 m-0 h-screen w-56 transform overflow-x-hidden overflow-y-scroll border-gray-100 bg-gray-50 transition duration-200 ease-in-out", |
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.
Providing explicit width same as the parent ensures that it isn't pushed around due to overflow-y scrollbar. But it adds a horizontal scrollbar which is hidden using the overflow-x-hidden
class
What does this PR do?
Stops content pushing when vertical scrollbar shows up on some windows browsers
Fixes #5383
Loom Video
Environment: Staging(main branch)
Type of change
Checklist