Resize large image to fit into window for Image Gallery (#539)

This commit is contained in:
Chenlei Hu
2024-08-19 16:50:40 -04:00
committed by GitHub
parent 0dfbcfb2d6
commit 2252f0a134

View File

@@ -91,8 +91,8 @@ onUnmounted(() => {
/* PrimeVue's galleria teleports the fullscreen gallery out of subtree so we
cannot use scoped style here. */
img.galleria-image {
max-width: 100%;
max-height: 100%;
max-width: 100vw;
max-height: 100vh;
object-fit: contain;
/* Set z-index so the close button doesn't get hidden behind the image when image is large */
z-index: -1;