diff --git a/components/ContentType/HotelPage/Rooms/index.tsx b/components/ContentType/HotelPage/Rooms/index.tsx index 644bc93b6..e75d578fb 100644 --- a/components/ContentType/HotelPage/Rooms/index.tsx +++ b/components/ContentType/HotelPage/Rooms/index.tsx @@ -61,25 +61,21 @@ export function Rooms({ rooms }: RoomsProps) { title={intl.formatMessage({ id: "Rooms" })} preamble={null} /> - - {mappedRooms.map( - ({ id, images, title, subtitle, popularChoice }, index) => ( -
2 ? styles.hiddenRoomCard : "" - } - > - -
- ) - )} + + {mappedRooms.map(({ id, images, title, subtitle, popularChoice }) => ( +
+ +
+ ))}
{showToggleButton ? ( diff --git a/components/ContentType/HotelPage/Rooms/rooms.module.css b/components/ContentType/HotelPage/Rooms/rooms.module.css index 1f719b1d2..1d79309c0 100644 --- a/components/ContentType/HotelPage/Rooms/rooms.module.css +++ b/components/ContentType/HotelPage/Rooms/rooms.module.css @@ -13,10 +13,10 @@ justify-content: center; } -.hiddenRoomCard { - display: none; -} - .showMoreButton.showLess .chevron { transform: rotate(180deg); } + +.grid :not(.allVisible):nth-child(n + 4) { + display: none; +}