diff --git a/client/src/components/photo-gallery.tsx b/client/src/components/photo-gallery.tsx index c32c1a1..a71f79e 100644 --- a/client/src/components/photo-gallery.tsx +++ b/client/src/components/photo-gallery.tsx @@ -13,6 +13,7 @@ interface GalleryImage { const PAGE_SIZE = 24; function thumbUrl(src: string) { + if (src.includes("res.cloudinary.com")) return src; return `/api/gallery/thumb?src=${encodeURIComponent(src)}`; } @@ -321,7 +322,7 @@ export default function GalleryPage() { className="group relative rounded-lg overflow-hidden bg-card border border-card-border cursor-pointer flex flex-col" data-testid={`button-gallery-image-${i}`} > -