From 793cc0e2086e7f59c58303a16414422c53602bfc Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 26 Oct 2024 11:09:46 +0200 Subject: Lightbox: Explicit auto size of image --- src/objects/_lightbox.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objects/_lightbox.scss b/src/objects/_lightbox.scss index 5562696..dbcc3ab 100644 --- a/src/objects/_lightbox.scss +++ b/src/objects/_lightbox.scss @@ -28,6 +28,7 @@ display: block; grid-area: content; place-self: center; + size: auto; max-inline-size: 100%; max-block-size: 80vh; padding: props.get(vars.$pad); @@ -93,8 +94,7 @@ inset-block-start: 0; inset-inline-start: 0; display: block; - inline-size: 100%; - block-size: 100%; + size: 100%; object-fit: cover; object-position: center center; } -- cgit v1.2.3-70-g09d2