Tweak retain_definitely to work wide the newer thumbnails.

This commit is contained in:
Dermot Duffy
2022-03-20 20:06:20 -07:00
parent c4ec94573c
commit 0ae9afef4b
7 changed files with 41 additions and 27 deletions
+6
View File
@@ -38,6 +38,12 @@ ha-icon.control {
padding-bottom: $drawer-padding-extend;
}
:host([open]) ha-icon.control {
// When the drawer is open make the button to close it more prominent.
opacity: 1;
background-color: black;
}
:host([location='left']) ha-icon.control {
border-top-right-radius: $drawer-icon-size;
border-bottom-right-radius: $drawer-icon-size;
+14 -14
View File
@@ -1,16 +1,21 @@
@use "@material/image-list/mdc-image-list";
@use "@material/image-list";
@use '@material/image-list/mdc-image-list';
@use '@material/image-list';
@use 'thumbnail';
:host {
display: block;
width: 100%;
height: 100%;
overflow: auto;
-ms-overflow-style: none; /* Hide scrollbar: IE and Edge */
scrollbar-width: none; /* Hide scrollbar: Firefox */
// Hide scrollbar: IE and Edge
-ms-overflow-style: none;
// Hide scrollbar: Firefox
scrollbar-width: none;
}
/* Hide scrollbar for Chrome, Safari and Opera */
// Hide scrollbar for Chrome, Safari and Opera
:host::-webkit-scrollbar {
display: none;
}
@@ -44,12 +49,7 @@ ha-card.frigate-card-gallery-folder {
height: 100%;
line-height: 1;
}
.favorite {
position: absolute;
transform: translate(-50%, -50%);
height: 24px;
width: 24px;
top: 10%;
left: 90%;
color: yellow;
}
@include thumbnail.thumbnail-favorite() {
opacity: 0.8;
} ;
+10 -9
View File
@@ -54,12 +54,13 @@ span.heading {
font-weight: bold;
}
.favorite {
position: absolute;
transform: translate(-50%, -50%);
height: 24px;
width: 24px;
top: 12%;
left: 90%;
color: yellow;
}
@mixin thumbnail-favorite() {
ha-icon.favorite {
position: absolute;
color: var(--primary-color);
padding: 2px;
@content;
}
}
@include thumbnail-favorite()