Update image-viewer-modal.tsx
This commit is contained in:
@@ -45,9 +45,10 @@ export function ImageViewerModal({ isOpen, onClose, imageUrl, onNavigate }: Imag
|
||||
|
||||
return (
|
||||
<Dialog open={isOpen} onOpenChange={onClose}>
|
||||
<DialogContent className="p-0 border-none bg-black/90 max-w-[90vw] max-h-[90vh] overflow-hidden">
|
||||
{/* Close button */}
|
||||
<DialogContent className="p-0 border-none bg-black/90 max-w-[90vw] max-h-[90vh] overflow-hidden [&>button:not([id='custom-close-btn'])]:hidden">
|
||||
{/* Custom close button */}
|
||||
<Button
|
||||
id="custom-close-btn"
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
onClick={onClose}
|
||||
|
||||
Reference in New Issue
Block a user