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

Stops content pushing on windows browsers due to overflow-y #5513

Merged
merged 3 commits into from
Nov 14, 2022

Conversation

alishaz-polymath
Copy link
Member

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

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

@alishaz-polymath alishaz-polymath added the 🐛 bug Something isn't working label Nov 14, 2022
@alishaz-polymath alishaz-polymath self-assigned this Nov 14, 2022
@vercel
Copy link

vercel bot commented Nov 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cal ✅ Ready (Inspect) Visit Preview Nov 14, 2022 at 11:05AM (UTC)

@what-the-diff
Copy link

what-the-diff bot commented Nov 14, 2022

  • Added w-56 to the classNames
  • Changed overflow-y-scroll to overflow-x-hidden and added a new line for overflow y scroll

Copy link
Member

@sean-brydon sean-brydon left a 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

Copy link
Member Author

@alishaz-polymath alishaz-polymath left a 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",
Copy link
Member Author

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

@alishaz-polymath alishaz-polymath added ♻️ autoupdate tells kodiak to keep this branch up-to-date automerge labels Nov 14, 2022
@kodiakhq kodiakhq bot merged commit 7beb17c into main Nov 14, 2022
@kodiakhq kodiakhq bot deleted the bugfix/no-padding-settings branch November 14, 2022 11:07
@PeerRich PeerRich added the core area: core, team members only label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge ♻️ autoupdate tells kodiak to keep this branch up-to-date 🐛 bug Something isn't working core area: core, team members only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No padding on settings page
4 participants