From 56b87d63937e4308ab134fc9cbad89ed6f095526 Mon Sep 17 00:00:00 2001 From: Sped0n Date: Tue, 25 Nov 2025 19:43:36 +0800 Subject: [PATCH] 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 --- assets/scss/_partial/_gallery.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/scss/_partial/_gallery.scss b/assets/scss/_partial/_gallery.scss index a6a263f..cb97ee6 100644 --- a/assets/scss/_partial/_gallery.scss +++ b/assets/scss/_partial/_gallery.scss @@ -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; }