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

Modal: portal could use hack for 100vh to have correct height #1501

Merged
merged 5 commits into from
Mar 16, 2022

Conversation

Gnito
Copy link
Contributor

@Gnito Gnito commented Mar 15, 2022

Portal version of Modals couldn't use 100vh on mobile Safari. Safari changes the window's height based on if the location bar is squeezed or not (and that depends on scroll-effect).

Basically, this fix:
https://css-tricks.com/the-trick-to-viewport-units-on-mobile/#css-custom-properties-the-trick-to-correct-sizing

@Gnito Gnito force-pushed the fix-modals-on-mobile-safari branch from 989d4ed to 593a96f Compare March 15, 2022 16:18
@Gnito Gnito temporarily deployed to sharetribe-starter-app March 15, 2022 16:21 Inactive
@Gnito Gnito force-pushed the fix-modals-on-mobile-safari branch from 593a96f to 4a99177 Compare March 15, 2022 18:13
@Gnito Gnito temporarily deployed to sharetribe-starter-app March 15, 2022 18:17 Inactive
@Gnito Gnito force-pushed the fix-modals-on-mobile-safari branch from 4a99177 to af4e833 Compare March 15, 2022 18:30
@Gnito Gnito temporarily deployed to sharetribe-starter-app March 15, 2022 18:30 Inactive
@Gnito Gnito force-pushed the fix-modals-on-mobile-safari branch from af4e833 to 5e2678a Compare March 15, 2022 18:35
@Gnito Gnito temporarily deployed to sharetribe-starter-app March 15, 2022 18:36 Inactive
@Gnito Gnito force-pushed the fix-modals-on-mobile-safari branch from 5e2678a to b25cdf3 Compare March 15, 2022 18:46
@Gnito Gnito temporarily deployed to sharetribe-starter-app March 15, 2022 18:47 Inactive
@Gnito Gnito force-pushed the fix-modals-on-mobile-safari branch from b25cdf3 to c975798 Compare March 16, 2022 14:21
@Gnito Gnito temporarily deployed to sharetribe-starter-app March 16, 2022 14:37 Inactive
@Gnito Gnito merged commit fb7b8ab into master Mar 16, 2022
@Gnito Gnito deleted the fix-modals-on-mobile-safari branch March 16, 2022 14:50
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.

1 participant