From: Stephen Cameron Date: Wed, 9 Oct 2019 17:49:47 +0000 (+0200) Subject: Replace lightbox arrows and open images directly when clicking on thumbnails. Wait... X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1d4d62662d9df41959dd595d595a94ba822d361a;p=pmi.git Replace lightbox arrows and open images directly when clicking on thumbnails. Wait #3074 --- diff --git a/resources/js/components/ProductGallery.vue b/resources/js/components/ProductGallery.vue index 3fc2570..6745349 100644 --- a/resources/js/components/ProductGallery.vue +++ b/resources/js/components/ProductGallery.vue @@ -8,8 +8,8 @@ :key="i" :style="`background-image:url(${thumb})`" :class="{ 'product-gallery-current' : currentImage === i }" - class="product-gallery-thumb" - @click="currentImage = i" + class="product-gallery-thumb cursor-zoom-in" + @click="lightboxImage = i" > @@ -21,6 +21,12 @@ @close="lightboxImage = null" > + + @@ -70,3 +76,11 @@ } + +