Skip to content

Commit

Permalink
Fix src-set not properly defined (#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Nov 14, 2024
1 parent 5bed17c commit 0f32f23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/js/components/gallery/thumbs/PhotoThumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0f32f23

Please sign in to comment.