From c078589f24a14e890593366913ae6c14884616a9 Mon Sep 17 00:00:00 2001 From: biati-digital Date: Sun, 31 Mar 2024 11:22:31 -0600 Subject: [PATCH] fix: fixed lightbox and overlay height --- .changeset/cool-fishes-yawn.md | 5 +++++ packages/glightbox/src/glightbox.css | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/cool-fishes-yawn.md diff --git a/.changeset/cool-fishes-yawn.md b/.changeset/cool-fishes-yawn.md new file mode 100644 index 0000000..82b7b0e --- /dev/null +++ b/.changeset/cool-fishes-yawn.md @@ -0,0 +1,5 @@ +--- +"glightbox": patch +--- + +fixed lightbox and overlay height diff --git a/packages/glightbox/src/glightbox.css b/packages/glightbox/src/glightbox.css index cf67fdb..d56fed0 100644 --- a/packages/glightbox/src/glightbox.css +++ b/packages/glightbox/src/glightbox.css @@ -3,7 +3,7 @@ top: 0; left: 0; width: 100dvw; - height: 100dvw; + height: 100dvh; overflow: hidden; z-index: 9999; } @@ -18,7 +18,7 @@ background: var(--gl-overlay, #111010f7); position: fixed; width: 100dvw; - height: 100dvw; + height: 100dvh; overflow: hidden; z-index: -1; inset: 0;