Enable smooth panning between past/live.

This commit is contained in:
Dermot Duffy
2023-04-09 19:23:34 -07:00
parent b3bb56298a
commit e1d74dc35a
26 changed files with 474 additions and 339 deletions
+2 -8
View File
@@ -37,8 +37,7 @@ div.main {
width: 100%;
height: 100%;
margin: auto;
display: flex;
justify-content: center;
display: block;
// Necessary to get Safari to show border-radius correctly.
transform: translateZ(0);
@@ -118,11 +117,6 @@ ha-card.triggered {
animation: warning-pulse 5s infinite;
}
frigate-card-live.hidden {
// Live view will be rendered but hidden for live preloading.
display: none;
}
/************
* Fullscreen
*************/
@@ -188,4 +182,4 @@ web-dialog::part(dialog) {
// Fixes to render the dialog correctly in Safari.
border-radius: 0px;
background: transparent;
}
}
+1 -8
View File
@@ -1,12 +1,5 @@
:host {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
gap: 5px;
}
frigate-card-live-carousel {
flex: 1;
min-height: 0;
display: block;
}
+3 -2
View File
@@ -14,8 +14,9 @@
overflow: hidden;
}
::slotted:not([name]) {
::slotted(:not([slot])) {
// Expand the main body to fill available content not otherwise used by the
// surround.
// named slots around the surround.
flex: 1;
min-height: 0px;
}
+1 -1
View File
@@ -2,4 +2,4 @@
width: 100%;
height: 100%;
display: block;
}
}
+14
View File
@@ -0,0 +1,14 @@
:host {
width: 100%;
height: 100%;
display: block;
}
:host([hidden]),
.hidden {
// Views content is hidden in these cases:
// - Live view being preloaded but live view not active.
// - Overall views component marked as hidden (e.g. error message to display
// at the card level).
display: none;
}