From 1d4d62662d9df41959dd595d595a94ba822d361a Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Wed, 9 Oct 2019 19:49:47 +0200 Subject: [PATCH] Replace lightbox arrows and open images directly when clicking on thumbnails. Wait #3074 --- resources/js/components/ProductGallery.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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 @@ } + + -- 2.39.5