Update image-viewer-modal.tsx

This commit is contained in:
NotII
2025-03-18 04:24:05 +01:00
parent 5c8d4b48fe
commit 20c6f94e86

View File

@@ -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>