mirror of
https://github.com/D4M13N-D3V/neroshitron.git
synced 2025-03-14 10:05:04 +00:00
fix: clicking opened image to close
This commit is contained in:
parent
1286003442
commit
8cf5e0b827
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user