From 0f32f2335b2abdb5626b0f178aa170ddba8e0e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Viguier?= Date: Thu, 14 Nov 2024 18:39:25 +0100 Subject: [PATCH] Fix src-set not properly defined (#2687) --- resources/js/components/gallery/thumbs/PhotoThumb.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/js/components/gallery/thumbs/PhotoThumb.vue b/resources/js/components/gallery/thumbs/PhotoThumb.vue index 2e112da2a1c..0b7772f07c7 100644 --- a/resources/js/components/gallery/thumbs/PhotoThumb.vue +++ b/resources/js/components/gallery/thumbs/PhotoThumb.vue @@ -26,7 +26,9 @@ class="h-full w-full border-none object-cover object-center" :src="props.photo.size_variants.small?.url ?? props.photo.size_variants.thumb?.url ?? srcNoImage" :srcset=" - props.photo.size_variants.small2x ? props.photo.size_variants.small + ' 1x, ' + props.photo.size_variants.small2x + ' 2x' : '' + props.photo.size_variants.small2x?.url + ? props.photo.size_variants.small?.url + ' 1x, ' + props.photo.size_variants.small2x.url + ' 2x' + : '' " data-overlay="false" draggable="false"