From 3bf256a4ca05b2cd43145dc1fbaa76e341c0f1d9 Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Fri, 31 May 2024 18:51:01 +0200 Subject: [PATCH] test --- snippets/shx-product-desc.liquid | 5 +++++ snippets/shx-video-base.liquid | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/snippets/shx-product-desc.liquid b/snippets/shx-product-desc.liquid index 2805200..e77e0a4 100644 --- a/snippets/shx-product-desc.liquid +++ b/snippets/shx-product-desc.liquid @@ -57,6 +57,11 @@ let videoElement = videoWrapperClone.querySelector('video'); videoWrapperClone.classList.add('shx-video-for-desc'); + // move video element out of his parent + videoWrapperClone.appendChild(videoElement); + + + // pause all video Object.keys(this.video_wrapper_Clones).forEach((key) => { if (key !== this.currentVariant) { diff --git a/snippets/shx-video-base.liquid b/snippets/shx-video-base.liquid index 7c8065d..dbb6f74 100644 --- a/snippets/shx-video-base.liquid +++ b/snippets/shx-video-base.liquid @@ -30,9 +30,7 @@ } .shx-video-for-desc { - max-width: 100%; - height: 400px; - width: 400px; + width: 100%; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);