Skip to content

Commit 032bf2d

Browse files
authored
Merge pull request #23 from Q42/bugfix/popover-images-fix
bugfix wrong png micrio detection in gallery popover
2 parents 3f9c7ac + 4316482 commit 032bf2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/svelte/components/MicrioGallery.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</script>
2121

2222
<figure>
23-
<micr-io data-gallery={gallery.map(i => `${i.micrioId},${i.width},${i.height},${i.isDeepZoom?'d':''}${i.isPng||i.src?.endsWith('.png')?',p':i.isWebP||i.src?.endsWith('.webp')?',w' : ''}`).join(';')}
23+
<micr-io data-gallery={gallery.map(i => `${i.micrioId},${i.width},${i.height},${i.isDeepZoom?'d':''}${i.isWebP?',w':i.isPng||(!$current?.isV5&&i.src?.endsWith('.png'))?',p' : ''}`).join(';')}
2424
data-start={startId}
2525
data-path={$current && $current.$info && $current.$info.path}
2626
data-logo="false"

0 commit comments

Comments
 (0)