Add 'infinite' gallery support.

This commit is contained in:
Dermot Duffy
2023-01-24 19:36:54 -08:00
parent 7b0cde0e50
commit d0a6f0928f
12 changed files with 286 additions and 115 deletions
+23
View File
@@ -0,0 +1,23 @@
.dotdotdot:after {
@keyframes dots {
0%,
20% {
content: '.';
}
40% {
content: '..';
}
60% {
content: '...';
}
90%,
100% {
content: '';
}
}
animation: dots 2s linear infinite;
content: '';
display: inline-block;
width: 3em;
}
+6 -1
View File
@@ -1,3 +1,5 @@
@use 'dotdotdot.scss';
:host {
width: 100%;
height: auto;
@@ -31,7 +33,10 @@
text-align: center;
color: var(--primary-text-color, white);
border: 1px solid var(--primary-color);
border-radius: var(--frigate-card-css-border-radius, var(--ha-card-border-radius, 4px));
border-radius: var(
--frigate-card-css-border-radius,
var(--ha-card-border-radius, 4px)
);
// Folder background color should match the thumbnail element background
// color.
+3 -25
View File
@@ -1,3 +1,5 @@
@use 'dotdotdot.scss';
:host {
min-height: 100%;
width: 100%;
@@ -56,28 +58,4 @@ div.message div.icon {
.message ha-icon, ha-circular-progress {
padding: 10px;
}
.dotdotdot:after {
@keyframes dots {
0%,
20% {
content: '.';
}
40% {
content: '..';
}
60% {
content: '...';
}
90%,
100% {
content: '';
}
}
animation: dots 2s linear infinite;
content: '';
display: inline-block;
width: 3em;
}
}