fix: clicking opened image to close

This commit is contained in:
Damien Ostler 2024-05-26 16:59:55 -04:00
parent 1286003442
commit 8cf5e0b827

View File

@ -187,7 +187,7 @@ const Gallery = ({ id, columns, closeMenu }: GalleryProps) => {
src={images[currentIndex]}
style={{ objectFit: "contain", maxWidth: "100%", maxHeight: "calc(100vh - 20px)" }}
className="cursor-pointer animate-in w-full h-auto"
onClick={() => setSelectedImage(null)}
onClick={() => close()}
/>
) : (
<Masonry