fix: Panel height should be 100% when casted (#1750)

This commit is contained in:
Dermot Duffy
2024-12-13 08:11:26 -08:00
committed by GitHub
parent e0335c529c
commit ed0bb99a45
7 changed files with 53 additions and 19 deletions
+8 -2
View File
@@ -39,10 +39,16 @@ frigate-card-loading {
:host([dark]) {
filter: brightness(75%);
}
:host([panel]) {
// Card always extends to the full height in panel mode
:host([panel]:not([casted])) {
// Card always extends to the full height in panel mode minus the header.
height: calc(100vh - var(--header-height));
}
:host([panel][casted]) {
// Card always extends to the full height in panel mode when casting (there is
// no header).
// See: https://github.com/dermotduffy/frigate-hass-card/issues/1746
height: 100%;
}
div.main {
position: relative;