updte
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Dialog, DialogContent } from "@/components/ui/dialog";
|
||||
import { X, ChevronLeft, ChevronRight } from "lucide-react";
|
||||
import Image from "next/image";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface ImageViewerModalProps {
|
||||
@@ -43,14 +42,12 @@ export function ImageViewerModal({ isOpen, onClose, imageUrl, onNavigate }: Imag
|
||||
</>
|
||||
)}
|
||||
|
||||
<div className="relative w-full h-full min-h-[60vh]">
|
||||
<Image
|
||||
<div className="relative w-full h-full min-h-[60vh] flex items-center justify-center">
|
||||
<img
|
||||
src={imageUrl}
|
||||
alt="Full size image"
|
||||
fill
|
||||
className="object-contain"
|
||||
priority
|
||||
sizes="90vw"
|
||||
className="max-w-full max-h-full object-contain"
|
||||
loading="eager"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user