From 949004b0f3ba9c5a75c14b3a86602c7938dd20e8 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Thu, 3 Oct 2024 16:37:08 -0500 Subject: [PATCH] Fix mobile vs tab view on promotional carousel message --- .../InteractivePromotionalCarousel.js | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/components/content/carousels/InteractivePromotionalCarousel.js b/src/components/content/carousels/InteractivePromotionalCarousel.js index 4c1bbb4..b1ffbd7 100644 --- a/src/components/content/carousels/InteractivePromotionalCarousel.js +++ b/src/components/content/carousels/InteractivePromotionalCarousel.js @@ -48,7 +48,8 @@ const InteractivePromotionalCarousel = () => { const { returnImageProxy } = useImageProxy(); const { showToast } = useToast(); const windowWidth = useWindowWidth(); - const isMobileView = windowWidth <= 1360; + const isTabView = windowWidth <= 1360; + const isMobile = windowWidth <= 768; const router = useRouter(); const videoRef = useRef(null); @@ -75,13 +76,13 @@ const InteractivePromotionalCarousel = () => { }, [selectedPromotion]); return ( -
-
+
+
{selectedPromotion.video ? (