mirror of
https://github.com/home-assistant/frontend.git
synced 2026-10-11 01:54:44 +01:00
Keep dropdown menus clear of safe areas (#54762)
This commit is contained in:
1 parent
5ba7a906d4
commit
e580fb8b5c
1 file changed
+16
@@ -110,6 +110,22 @@ export class HaDropdown extends Dropdown {
|
||||
wa-popup::part(popup) {
|
||||
z-index: 200;
|
||||
}
|
||||
|
||||
/* The auto size ignores safe areas, so a long menu could end up
|
||||
behind the Android navigation bar or the notch. */
|
||||
wa-popup[data-current-placement^="bottom"] #menu {
|
||||
max-height: calc(
|
||||
var(--auto-size-available-height) - var(
|
||||
--safe-area-inset-bottom,
|
||||
0px
|
||||
)
|
||||
) !important;
|
||||
}
|
||||
wa-popup[data-current-placement^="top"] #menu {
|
||||
max-height: calc(
|
||||
var(--auto-size-available-height) - var(--safe-area-inset-top, 0px)
|
||||
) !important;
|
||||
}
|
||||
`,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user