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

fix(web): prevent layout change from scrollbar in admin settings #6482

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Jan 19, 2024

Description

When initially visiting the admin settings, there may be no scrollbar. Currently, when an accordion is expanded and a scrollbar appears, all the settings are shifted slightly to the left. This PR adds the new scrollbar-gutter CSS property that allows the layout to compensate for this.

Notably, Safari only supports this property behind a feature flag, so it will not have an effect on this browser yet.

How Has This Been Tested?

The admin settings no longer shift when the scrollbar appears.

Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2319196
Status: ✅  Deploy successful!
Preview URL: https://59bce23a.immich.pages.dev
Branch Preview URL: https://fix-web-scrollbar.immich.pages.dev

View logs

@alextran1502 alextran1502 enabled auto-merge (squash) January 19, 2024 03:30
@alextran1502 alextran1502 merged commit b4d1470 into main Jan 19, 2024
22 of 23 checks passed
@alextran1502 alextran1502 deleted the fix/web-scrollbar branch January 19, 2024 03:30
@mertalev mertalev changed the title fix(web): prevent layout change from scrollbar in admin setings fix(web): prevent layout change from scrollbar in admin settings Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants