From c99060363cea33a763931930acc0553b80db0cbd Mon Sep 17 00:00:00 2001 From: Fredrik Thorsson Date: Mon, 17 Mar 2025 07:53:32 +0000 Subject: [PATCH] Merged in fix/SW-1898-mobile-hotel-map-card-list (pull request #1537) fix/SW-1898-mobile-hotel-map-card-list * fix(SW-1898): call reInit Approved-by: Erik Tiekstra --- apps/scandic-web/components/Carousel/index.tsx | 1 + .../HotelCardCarousel/hotelCardCarousel.module.css | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/scandic-web/components/Carousel/index.tsx b/apps/scandic-web/components/Carousel/index.tsx index 20d859a9e..0b0df6417 100644 --- a/apps/scandic-web/components/Carousel/index.tsx +++ b/apps/scandic-web/components/Carousel/index.tsx @@ -75,6 +75,7 @@ function Carousel({ useEffect(() => { if (!api || scrollToIdx === -1) return + api.reInit() api.scrollTo(scrollToIdx) }, [api, scrollToIdx]) diff --git a/apps/scandic-web/components/ContentType/DestinationPage/HotelCardCarousel/hotelCardCarousel.module.css b/apps/scandic-web/components/ContentType/DestinationPage/HotelCardCarousel/hotelCardCarousel.module.css index 8dbc57a58..29a39602a 100644 --- a/apps/scandic-web/components/ContentType/DestinationPage/HotelCardCarousel/hotelCardCarousel.module.css +++ b/apps/scandic-web/components/ContentType/DestinationPage/HotelCardCarousel/hotelCardCarousel.module.css @@ -10,6 +10,7 @@ .carouselContent { gap: var(--Spacing-x1); + align-items: end; } }