diff --git a/src/routes/_components/dialog/components/MediaDialog.html b/src/routes/_components/dialog/components/MediaDialog.html index bc8d046..06668a1 100644 --- a/src/routes/_components/dialog/components/MediaDialog.html +++ b/src/routes/_components/dialog/components/MediaDialog.html @@ -11,20 +11,26 @@
- + {#if canPinchZoom} + + + + {:else} - + {/if}
{/each}
- + {#if canPinchZoom} + + {/if} {#if dots.length > 1}
{/if} - + {#if canPinchZoom} + + {/if}
@@ -206,7 +214,8 @@ }), computed: { length: ({ mediaItems }) => mediaItems.length, - dots: ({ length }) => times(length, i => ({ i })) + dots: ({ length }) => times(length, i => ({ i })), + canPinchZoom: ({ mediaItems }) => !mediaItems.some(media => media.type === 'video') }, components: { ModalDialog,