fix(SW-194): update css on Rooms
This commit is contained in:
@@ -61,25 +61,21 @@ export function Rooms({ rooms }: RoomsProps) {
|
|||||||
title={intl.formatMessage({ id: "Rooms" })}
|
title={intl.formatMessage({ id: "Rooms" })}
|
||||||
preamble={null}
|
preamble={null}
|
||||||
/>
|
/>
|
||||||
<Grids.Stackable>
|
<Grids.Stackable className={styles.grid}>
|
||||||
{mappedRooms.map(
|
{mappedRooms.map(({ id, images, title, subtitle, popularChoice }) => (
|
||||||
({ id, images, title, subtitle, popularChoice }, index) => (
|
<div
|
||||||
<div
|
key={id}
|
||||||
key={id}
|
className={`${allRoomsVisible ? styles.allVisible : ""}`}
|
||||||
className={
|
>
|
||||||
!allRoomsVisible && index > 2 ? styles.hiddenRoomCard : ""
|
<RoomCard
|
||||||
}
|
id={id}
|
||||||
>
|
images={images}
|
||||||
<RoomCard
|
title={title}
|
||||||
id={id}
|
subtitle={subtitle}
|
||||||
images={images}
|
badgeTextTransKey={popularChoice ? "Popular choice" : null}
|
||||||
title={title}
|
/>
|
||||||
subtitle={subtitle}
|
</div>
|
||||||
badgeTextTransKey={popularChoice ? "Popular choice" : null}
|
))}
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
)}
|
|
||||||
</Grids.Stackable>
|
</Grids.Stackable>
|
||||||
|
|
||||||
{showToggleButton ? (
|
{showToggleButton ? (
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hiddenRoomCard {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.showMoreButton.showLess .chevron {
|
.showMoreButton.showLess .chevron {
|
||||||
transform: rotate(180deg);
|
transform: rotate(180deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.grid :not(.allVisible):nth-child(n + 4) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user