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