mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 05:36:00 +02:00
fix table image aspect ratio
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user