UX: Fix unreachable buttons on menus in Safari iOS (#11458)

Safari overlays its own nav at the bottom 10% or so of the screen. This
makes buttons in that area virtually unclickable, so to ensure buttons
there are reachable, we need to add enough bottom padding to menu panels.
This commit is contained in:
Penar Musaraj 2020-12-10 08:11:58 -05:00 committed by GitHub
parent da2a61e36c
commit fb2e24a77a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,5 +33,6 @@
}
.panel-body-contents {
padding-bottom: env(safe-area-inset-bottom);
// 2em padding very useful for iOS Safari's overlayed bottom nav
padding-bottom: calc(env(safe-area-inset-bottom) + 2em);
}