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

Fixed visual bug with overflown scroll mask #94

Merged
merged 2 commits into from
Mar 2, 2022

Conversation

onmax
Copy link
Member

@onmax onmax commented Mar 1, 2022

Solves #93.

This solution has hardcoded values which are highly discouraged, but the rest of the layout is also hardcoded, so I though it wouldn't be a problem.

I can look for another solution if necessary. 😄

@onmax onmax requested a review from sisou March 1, 2022 18:32
Copy link
Member

@sisou sisou left a comment

Choose a reason for hiding this comment

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

After some experimentation, it turns out the fix is to instead only apply the centering logic for big screens starting at 2070px, as otherwise a gap is created between 2000-2070px on the right of the address column (as the width is lower than the screen width). With this fix, all columns grow at the 2000px breakpoint, while the address column still adjusts to the available screen width (because its width is clamped), until 2070px, where it stays centered.

@sisou sisou merged commit da256bb into master Mar 2, 2022
@sisou sisou deleted the onmax/large-screen-scroll-mask-overflown branch March 2, 2022 11:59
sisou added a commit that referenced this pull request Mar 2, 2022
* fixed visual bug with overflown scroll mask #93
* Fix gap on right side between 2000-2070 px

Co-Authored-By: sisou <hello@soerenschwert.de>
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.

2 participants