fix(SW-591): fixed the position of the amenities list
This commit is contained in:
@@ -6,8 +6,7 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
gap: var(--Spacing-x-one-and-half);
|
gap: var(--Spacing-x-one-and-half);
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
width: 100%;
|
width: min(100%, 300px);
|
||||||
max-width: 300px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.amenityItemList {
|
.amenityItemList {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
gap: var(--Spacing-x2);
|
gap: var(--Spacing-x2);
|
||||||
position: relative;
|
position: relative;
|
||||||
max-width: var(--max-width-text-block);
|
max-width: 607px; /* Max width according to Figma */
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainContent {
|
.mainContent {
|
||||||
|
|||||||
@@ -28,7 +28,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.introContainer {
|
.introContainer {
|
||||||
display: grid;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
gap: var(--Spacing-x4);
|
gap: var(--Spacing-x4);
|
||||||
scroll-margin-top: var(--hotel-page-scroll-margin-top);
|
scroll-margin-top: var(--hotel-page-scroll-margin-top);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,6 +75,30 @@ export default async function HotelPage() {
|
|||||||
address={hotelAddress}
|
address={hotelAddress}
|
||||||
tripAdvisor={hotelRatings?.tripAdvisor}
|
tripAdvisor={hotelRatings?.tripAdvisor}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<AmenitiesList detailedFacilities={hotelDetailedFacilities} />
|
||||||
|
</div>
|
||||||
|
<Rooms rooms={roomCategories} />
|
||||||
|
<Facilities facilities={facilities} activitiesCard={activitiesCard} />
|
||||||
|
</main>
|
||||||
|
{googleMapsApiKey ? (
|
||||||
|
<>
|
||||||
|
<aside className={styles.mapContainer}>
|
||||||
|
<div className={styles.mapWithCard}>
|
||||||
|
<StaticMap coordinates={coordinates} hotelName={hotelName} />
|
||||||
|
<MapCard hotelName={hotelName} pois={topThreePois} />
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
<MobileMapToggle />
|
||||||
|
<DynamicMap
|
||||||
|
apiKey={googleMapsApiKey}
|
||||||
|
hotelName={hotelName}
|
||||||
|
coordinates={coordinates}
|
||||||
|
pointsOfInterest={pointsOfInterest}
|
||||||
|
mapId={googleMapId}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
) : null}
|
||||||
<SidePeekProvider>
|
<SidePeekProvider>
|
||||||
{/* eslint-disable import/no-named-as-default-member */}
|
{/* eslint-disable import/no-named-as-default-member */}
|
||||||
<SidePeek
|
<SidePeek
|
||||||
@@ -120,29 +144,6 @@ export default async function HotelPage() {
|
|||||||
</SidePeek>
|
</SidePeek>
|
||||||
{/* eslint-enable import/no-named-as-default-member */}
|
{/* eslint-enable import/no-named-as-default-member */}
|
||||||
</SidePeekProvider>
|
</SidePeekProvider>
|
||||||
<AmenitiesList detailedFacilities={hotelDetailedFacilities} />
|
|
||||||
</div>
|
|
||||||
<Rooms rooms={roomCategories} />
|
|
||||||
<Facilities facilities={facilities} activitiesCard={activitiesCard} />
|
|
||||||
</main>
|
|
||||||
{googleMapsApiKey ? (
|
|
||||||
<>
|
|
||||||
<aside className={styles.mapContainer}>
|
|
||||||
<div className={styles.mapWithCard}>
|
|
||||||
<StaticMap coordinates={coordinates} hotelName={hotelName} />
|
|
||||||
<MapCard hotelName={hotelName} pois={topThreePois} />
|
|
||||||
</div>
|
|
||||||
</aside>
|
|
||||||
<MobileMapToggle />
|
|
||||||
<DynamicMap
|
|
||||||
apiKey={googleMapsApiKey}
|
|
||||||
hotelName={hotelName}
|
|
||||||
coordinates={coordinates}
|
|
||||||
pointsOfInterest={pointsOfInterest}
|
|
||||||
mapId={googleMapId}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
) : null}
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user