Merged in fix/SW-1827-map-ipad-breakpoint (pull request #2539)
fix(SW-1827): change breakpoint for ipad to 900 for map view select hotel * fix(SW-1827): change breakpoint for ipad to 900 for map view select hotel Approved-by: Anton Gunnarsson Approved-by: Matilda Landström
This commit is contained in:
@@ -17,7 +17,7 @@ export default function HotelListing({
|
|||||||
unfilteredHotelCount,
|
unfilteredHotelCount,
|
||||||
}: HotelListingProps) {
|
}: HotelListingProps) {
|
||||||
const { activeHotel } = useHotelsMapStore()
|
const { activeHotel } = useHotelsMapStore()
|
||||||
const isMobile = useMediaQuery("(max-width: 767px)")
|
const isMobile = useMediaQuery("(max-width: 899px)")
|
||||||
|
|
||||||
return isMobile ? (
|
return isMobile ? (
|
||||||
<div className={styles.hotelListingMobile} data-open={!!activeHotel}>
|
<div className={styles.hotelListingMobile} data-open={!!activeHotel}>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 900px) {
|
||||||
.container {
|
.container {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export default function SelectHotelContent({
|
|||||||
const intl = useIntl()
|
const intl = useIntl()
|
||||||
const map = useMap()
|
const map = useMap()
|
||||||
|
|
||||||
const isAboveMobile = useMediaQuery("(min-width: 768px)")
|
const isAboveMobile = useMediaQuery("(min-width: 900px)")
|
||||||
const [visibleHotels, setVisibleHotels] = useState<HotelResponse[]>([])
|
const [visibleHotels, setVisibleHotels] = useState<HotelResponse[]>([])
|
||||||
const [showSkeleton, setShowSkeleton] = useState<boolean>(true)
|
const [showSkeleton, setShowSkeleton] = useState<boolean>(true)
|
||||||
const listingContainerRef = useRef<HTMLDivElement | null>(null)
|
const listingContainerRef = useRef<HTMLDivElement | null>(null)
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 900px) {
|
||||||
.container .closeButton {
|
.container .closeButton {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user