From 523d936010851005235b1480be5615aa00b44134 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Thu, 27 Oct 2022 15:29:47 +0200 Subject: [PATCH] Fix min height on lovelace panel for ios (#14207) --- src/panels/lovelace/hui-root.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 05e5187259..e574a842f1 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -1007,7 +1007,10 @@ class HUIRoot extends LitElement { color: var(--error-color); } #view { - min-height: calc(100vh - var(--header-height)); + min-height: calc( + 100vh - var(--header-height) - env(safe-area-inset-top) - + env(safe-area-inset-bottom) + ); /** * Since we only set min-height, if child nodes need percentage * heights they must use absolute positioning so we need relative @@ -1022,7 +1025,10 @@ class HUIRoot extends LitElement { * In edit mode we have the tab bar on a new line * */ .edit-mode #view { - min-height: calc(100vh - var(--header-height) - 48px); + min-height: calc( + 100vh - var(--header-height) - 48px - env(safe-area-inset-top) - + env(safe-area-inset-bottom) + ); } #view > * { /**