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 UI cutoff on mobile #594

Merged
merged 2 commits into from
Jan 28, 2025
Merged

Fix UI cutoff on mobile #594

merged 2 commits into from
Jan 28, 2025

Conversation

UX3D-hohenester
Copy link
Contributor

Mobile browser can overlap the page with their own ui elements. These do not reduce the vh property used in css. This can be mitigated using the dvh (dynamic view height) property instead.

fixes #593

(Additionally this pr replaces window.innerWidth with documen.documentElement.clientWidth for mobile detection, since the former does not report the actual window width on ios. mozilla innerWidth webkit bug )

@UX3D-haertl UX3D-haertl self-assigned this Dec 18, 2024
@UX3D-haertl UX3D-haertl merged commit 30d38be into main Jan 28, 2025
1 check passed
@UX3D-haertl UX3D-haertl deleted the fix/mobileMenuHeight branch January 28, 2025 14:35
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.

UI cutoff on mobile
2 participants