Update image-viewer-modal.tsx
This commit is contained in:
@@ -69,12 +69,15 @@ export function ImageViewerModal({ isOpen, onClose, imageUrl, onNavigate }: Imag
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Image container */}
|
{/* Image container - add onClick handler to close modal */}
|
||||||
<div className="w-full h-full flex items-center justify-center p-4">
|
<div
|
||||||
|
className="w-full h-full flex items-center justify-center p-4 cursor-pointer"
|
||||||
|
onClick={onClose}
|
||||||
|
>
|
||||||
<img
|
<img
|
||||||
src={imageUrl}
|
src={imageUrl}
|
||||||
alt="Full size image"
|
alt="Full size image"
|
||||||
className="max-w-full max-h-full object-contain"
|
className="max-w-full max-h-full object-contain cursor-pointer"
|
||||||
loading="eager"
|
loading="eager"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user