From a144f845666f4e7a62b9057f7bcd19f0c6338d0e Mon Sep 17 00:00:00 2001 From: Bianca Widstam Date: Wed, 17 Sep 2025 07:59:16 +0000 Subject: [PATCH] Merged in fix/SW-3481-map-view-pin-highlighted (pull request #2814) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(SW-3481): highlight pin and min width to 900 to avoid duplicate hotelcards * fix(SW-3481): highlight pin and min width to 900 to avoid duplicate hotelcards Approved-by: Matilda Landström --- .../SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx | 1 + .../Map/InteractiveMap/HotelListingMapContent/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/booking-flow/lib/components/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx b/packages/booking-flow/lib/components/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx index 65fa1b646..3e0b452d2 100644 --- a/packages/booking-flow/lib/components/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx +++ b/packages/booking-flow/lib/components/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx @@ -265,6 +265,7 @@ export function SelectHotelMapContent({ }, } })} + activeHotelPin={hotelMapStore.activeHotel} mapId={mapId} onTilesLoaded={debouncedUpdateHotelCards} fitBounds={isAboveMobile || !hotelMapStore.activeHotel} diff --git a/packages/design-system/lib/components/Map/InteractiveMap/HotelListingMapContent/index.tsx b/packages/design-system/lib/components/Map/InteractiveMap/HotelListingMapContent/index.tsx index e5389ace2..f0c9d1a8f 100644 --- a/packages/design-system/lib/components/Map/InteractiveMap/HotelListingMapContent/index.tsx +++ b/packages/design-system/lib/components/Map/InteractiveMap/HotelListingMapContent/index.tsx @@ -33,7 +33,7 @@ export function HotelListingMapContent({ lang, onClickHotel, }: HotelListingMapContentProps) { - const isDesktop = useMediaQuery('(min-width: 768px)') + const isDesktop = useMediaQuery('(min-width: 900px)') const toggleActiveHotelPin = ( args: { hotelName: string; hotelId: string } | null