fix(ui): drop the home-indicator padding of a bottom sheet on the keyboard

A bottom sheet standing on the on-screen keyboard kept its safe-area
inset as bottom padding, leaving about 34 px of empty space between
its last row and the keys on an iPhone.
This commit is contained in:
Marc-André Bombeck committed 2026-10-08 22:57:47 +02:00
1 parent 6b41c11f30
commit 938b5151de
3 files changed
+26 -2

No files matched your search

+7
View File
@@ -76,6 +76,13 @@
}
}
/*
* `keyboard-open:` — while the on-screen keyboard is up (see the keyboard
* rules further down). A bottom sheet then stands on the keyboard, not on
* the home indicator, so its safe-area padding has nothing left to clear.
*/
@custom-variant keyboard-open (html[data-keyboard="open"] &);
@custom-variant shell-mobile {
@media (max-width: 47.98rem), (pointer: coarse) and (max-height: 520px) {
@slot;