feat: Add loading spinner on card initialization (#1549)

* feat: Add loading spinner on card initialization

* Minor doc fix.
This commit is contained in:
Dermot Duffy
2024-09-20 19:39:17 -07:00
committed by GitHub
parent 650d99ec00
commit b46ea36265
7 changed files with 139 additions and 28 deletions
+7
View File
@@ -13,6 +13,7 @@
border-radius: var(--ha-card-border-radius, 4px);
height: var(--frigate-card-height);
min-height: 100px;
// Ensure all clicks at the top level work.
pointer-events: all;
@@ -29,6 +30,12 @@
--frigate-card-height: auto;
}
frigate-card-loading {
position: absolute;
inset: 0;
z-index: 1;
}
:host([dark]) {
filter: brightness(75%);
}