This commit is contained in:
NotII
2025-03-17 20:21:10 +01:00
parent cb47a8ac7a
commit a1630af807
2 changed files with 9 additions and 8 deletions

View File

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

View File

@@ -4,8 +4,12 @@ const nextConfig = {
remotePatterns: [
{
protocol: "https",
hostname: "**",
hostname: "api.telegram.org",
},
{
protocol: "https",
hostname: "telegram.org",
}
],
},
};