Fix positioning of icon and use ternary

This commit is contained in:
Nick Mowen
2022-03-20 17:34:11 -06:00
parent 16dc3d244a
commit ca837774bf
2 changed files with 28 additions and 47 deletions
+7 -4
View File
@@ -7,6 +7,8 @@
flex: 0 0 var(--frigate-card-carousel-thumbnail-size);
opacity: var(--frigate-card-carousel-thumbnail-opacity);
transition: opacity 0.6s ease, transform 0.2s linear;
position: relative;
display: inline-block;
}
.embla__slide.slide-selected {
opacity: 1.0;
@@ -28,9 +30,10 @@
}
.favorite {
position: absolute;
height: 30px;
width: 30px;
top: 8;
right: 8;
transform: translate(-50%, -50%);
height: 24px;
width: 24px;
top: 12%;
left: 90%;
color: yellow;
}