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 modal height on mobile devices #4

Merged
merged 10 commits into from
Apr 30, 2021
Merged

Fix modal height on mobile devices #4

merged 10 commits into from
Apr 30, 2021

Conversation

dlbnco
Copy link
Contributor

@dlbnco dlbnco commented Apr 30, 2021

When in modal mode, the modal tries to be a full-height element. However, using 100vh on mobile devices can result in parts of the modal being hidden by the browser UI.

This implements a custom vh measure by using this solution adapted to our styling method.

before after
Simulator Screen Shot - iPhone 12 mini - 2021-04-30 at 16 58 16 Simulator Screen Shot - iPhone 12 mini - 2021-04-30 at 16 55 44

@dlbnco dlbnco changed the base branch from main to feature/builtin-modal April 30, 2021 18:56
@dlbnco dlbnco changed the base branch from feature/builtin-modal to main April 30, 2021 18:56
@dlbnco dlbnco self-assigned this Apr 30, 2021
@dlbnco dlbnco merged commit a4023c9 into main Apr 30, 2021
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.

None yet

1 participant