From 45730bf99614529bd4b082825ed745ca0e558a0d Mon Sep 17 00:00:00 2001 From: Pouria Delfanazari Date: Fri, 15 Mar 2024 10:19:39 -0700 Subject: [PATCH] Fix gallery image not extending beyond container width --- .../dataDisplay/gallery/Gallery.tsx | 96 ++++++++++--------- 1 file changed, 49 insertions(+), 47 deletions(-) diff --git a/src/components/dataDisplay/gallery/Gallery.tsx b/src/components/dataDisplay/gallery/Gallery.tsx index 0ae2e4c8..12053687 100644 --- a/src/components/dataDisplay/gallery/Gallery.tsx +++ b/src/components/dataDisplay/gallery/Gallery.tsx @@ -54,66 +54,68 @@ export default function Gallery(props: Props) { return ( - - { - e.stopPropagation(); - onClose(); - }} - className="z-50" - > - - {imageCount > 1 && currentIndex > 0 && ( - )} - {imageCount > 1 && currentIndex < imageCount - 1 && ( - - )} + {imageCount > 1 && currentIndex > 0 && ( + + )} + {imageCount > 1 && currentIndex < imageCount - 1 && ( + + )} - {Array.isArray(images) && ( - {images[currentIndex].alt} - )} + {Array.isArray(images) && ( + {images[currentIndex].alt} + )} - {typeof images === "string" && ( - {"Image"} - )} - + {typeof images === "string" && ( + {"Image"} + )} + + ); }