mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-22 14:09:30 -07:00
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:
@@ -25,8 +25,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
max-height: calc(var(--window-height) - 2 * var(--nav-height));
|
||||||
height: 100%;
|
max-width: 100%;
|
||||||
|
width: auto;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user