Add drawer component and support side thumbnails.

This commit is contained in:
Dermot Duffy
2022-03-20 18:07:48 -07:00
parent 3d3967318b
commit 304abcd82b
8 changed files with 149 additions and 7 deletions
+14 -1
View File
@@ -23,11 +23,19 @@ img,video {
width: 100%;
height: 100%;
flex-direction: column;
user-select: none;
-webkit-touch-callout: none;
-khtml-user-select: none;
-webkit-tap-highlight-color: transparent;
}
:host([direction="vertical"]) .embla__container {
flex-direction: column;
}
:host([direction="horizontal"]) .embla__container {
flex-direction: row;
}
.embla__viewport {
width: 100%;
@@ -50,9 +58,14 @@ img,video {
.embla__slide {
position: relative;
height: 100%;
margin-right: 5px;
overflow: visible;
}
:host([direction="vertical"]) .embla__slide {
margin-bottom: 5px;
}
:host([direction="horizontal"]) .embla__slide {
margin-right: 5px;
}
.embla__slide img,video {
// Letterbox media. <frigate-card-ha-hls-player> has similar added directly in
// its element.