diff --git a/src/lib/components/DetailedSingleProduct/DetailedSingleProduct.svelte b/src/lib/components/DetailedSingleProduct/DetailedSingleProduct.svelte index 06f4aa5..b6dc89b 100644 --- a/src/lib/components/DetailedSingleProduct/DetailedSingleProduct.svelte +++ b/src/lib/components/DetailedSingleProduct/DetailedSingleProduct.svelte @@ -4,7 +4,6 @@ import AddToBasket from "$lib/components/AddToBasket/AddToBasket.svelte"; import SwipeImage from "$lib/components/SwipeImage/SwipeImage.svelte"; import { getImageFilename } from "$lib/utils/getImageFilename"; - import Modal from "$lib/components/Modal/Modal.svelte"; import type { Product } from "$lib/types/product"; import { isAvifSupported } from "$lib/stores/isAvifSupported"; @@ -36,7 +35,6 @@ }, ]; - let showModal = false; let clientWidth: number = 0; @@ -47,10 +45,6 @@ class="mobile-img-container" data-testid="mobile-img-container" style:width={clientWidth ? clientWidth + "px" : "90vw"} - on:click={() => { - showModal = true; - window.scrollTo(0, 0); - }} > @@ -78,14 +72,7 @@ {:else}
-
{ - showModal = true; - window.scrollTo(0, 0); - }} - > +
@@ -108,11 +95,6 @@
{/if} -{#if showModal} - - - -{/if}