fix table image aspect ratio

This commit is contained in:
jeffvli
2025-12-02 18:11:01 -08:00
parent 4d2721db50
commit ddb6447165
2 changed files with 27 additions and 9 deletions
@@ -5,6 +5,7 @@
.compact-image-container {
width: 100%;
overflow: hidden;
}
.image-container-with-aspect-ratio {
@@ -13,13 +14,15 @@
justify-content: center;
width: 100%;
height: 100%;
aspect-ratio: unset;
border-radius: var(--theme-radius-md);
}
.image-container-with-aspect-ratio img {
width: auto;
height: 100%;
object-fit: contain;
aspect-ratio: 1 / 1;
object-fit: var(--theme-image-fit);
object-position: center;
}
.image-container {
@@ -33,10 +36,21 @@
top: 50%;
left: 50%;
z-index: 10;
opacity: 0.6;
transform: translate(-50%, -50%);
transition: opacity 0.2s ease-in-out;
&:hover {
opacity: 1;
}
}
.play-button-overlay button {
width: 36px;
height: 36px;
width: 32px;
height: 32px;
}
.compact-play-button-overlay button {
width: 24px;
height: 24px;
}