Fix display of vertical images and videos such they fit in the gallery item.

This commit is contained in:
Leo Vasanko
2026-01-22 02:35:24 +00:00
parent 984e17c037
commit 667f44f1fa
2 changed files with 7 additions and 5 deletions
+4 -1
View File
@@ -75,12 +75,15 @@ figure {
display: flex;
flex-direction: column;
align-items: center;
justify-content: end;
justify-content: center;
overflow: hidden;
}
figure > article {
flex: 0 0 auto;
}
figure :deep(.video-container) {
height: 15em;
}
.titlespacer {
flex-shrink: 100000;
width: 100%;
+3 -4
View File
@@ -179,11 +179,10 @@ img::before {
max-height: 100%;
}
.video-container video {
font-size: 8em;
overflow: hidden;
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
border-radius: calc(.5em / 8);
object-fit: contain;
}
.play-overlay {
position: absolute;