Expand the timeline to 100% height in panel mode.

This commit is contained in:
Dermot Duffy committed 2022-10-15 12:16:43 -07:00
1 parent 42a9c62f6b
commit 700f09c12c
5 files changed
+33 -1

No files matched your search

+5
View File
@@ -16,6 +16,11 @@
:host([dark]) {
filter: brightness(75%);
}
:host([panel]) {
// Card always extends to the full allowed height in panel mode (in non-panel
// mode this would cause the card to expand to the height of a column).
height: 100%;
}
div.main {
position: relative;
+4
View File
@@ -12,6 +12,10 @@ ha-icon {
// Safari will occasionally not load thumbnails correctly with display block.
display: inline-block;
// Ensure no whitespace around img with inline-block display.
vertical-align: top;
margin: 0;
border-radius: var(--frigate-card-css-border-radius, var(--ha-card-border-radius, 4px));
max-width: var(--frigate-card-thumbnail-size);
+5
View File
@@ -12,6 +12,11 @@
position: relative;
}
:host(:not([mini])) {
// Timeline covers 100% of the parent unless it's in mini-mode.
height: 100%;
}
frigate-card-thumbnail {
height: var(--frigate-card-thumbnail-size);
width: var(--frigate-card-thumbnail-size);