From 99fe613811c149faf9b8f7b3d07c4700bc8c65cd Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 18 Jan 2025 19:06:09 -0800 Subject: [PATCH] fix: Panel mode cards with "Kiosk Mode" should fill the screen (#1838) * Closes #1762 --- src/scss/card.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/scss/card.scss b/src/scss/card.scss index a416ef16..678f4107 100644 --- a/src/scss/card.scss +++ b/src/scss/card.scss @@ -43,7 +43,12 @@ frigate-card-loading { } :host([panel]:not([casted])) { // Card always extends to the full height in panel mode minus the header. - height: calc(100vh - var(--header-height)); + // + // If the "Kiosk Mode" (https://github.com/maykar/kiosk-mode) plugin is + // installed, the --kiosk-header-height variable will be authoritative + // instead. + // See: https://github.com/dermotduffy/frigate-hass-card/issues/1762 + height: calc(100vh - var(--kiosk-header-height, var(--header-height))); } :host([panel][casted]) { // Card always extends to the full height in panel mode when casting (there is