fix(gallery): adjust image sizing to fit window height

Update gallery image styles to use max-height based on window minus nav,
max-width 100%, and auto width for proper scaling with contain fit.

Signed-off-by: Sped0n <hi@sped0n.com>
This commit is contained in:
Sped0n
2025-11-25 19:43:36 +08:00
committed by Ryan
parent 75d8310953
commit 56b87d6393

View File

@@ -25,8 +25,9 @@
}
img {
width: 100%;
height: 100%;
max-height: calc(var(--window-height) - 2 * var(--nav-height));
max-width: 100%;
width: auto;
object-fit: contain;
}