Add thumbnail to live view.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
:host {
|
||||
--frigate-card-viewer-thumbnail-size: 100px;
|
||||
--frigate-card-carousel-thumbnail-size: 100px;
|
||||
--frigate-card-carousel-thumbnail-opacity: 0.6;
|
||||
}
|
||||
|
||||
.embla__slide {
|
||||
flex: 0 0 var(--frigate-card-viewer-thumbnail-size);
|
||||
opacity: 0.4;
|
||||
flex: 0 0 var(--frigate-card-carousel-thumbnail-size);
|
||||
opacity: var(--frigate-card-carousel-thumbnail-opacity);
|
||||
transition: opacity 0.6s ease, transform 0.3s ease;
|
||||
}
|
||||
.embla__slide.slide-selected {
|
||||
@@ -15,4 +16,9 @@
|
||||
}
|
||||
.embla__slide img {
|
||||
border-radius: 5px;
|
||||
|
||||
// Not 'contain' as some thumbnails may vary in aspect-ratio slightly and
|
||||
// should be clipped to fill the thumbnail div whilst maintaining
|
||||
// aspect-ratio.
|
||||
object-fit: cover;
|
||||
}
|
||||
Reference in New Issue
Block a user