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

View File

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