Merged in fix/SW-2786-ios-only-mobile-browsers- (pull request #2626)

fix(SW-2786): Added sizes auto to load images of appropriate size instead of largest

* fix(SW-2786): Added sizes auto to load images of appropriate size instead of largest

* fix(SW-2786): Updated to specific size as auto value is not yet supported by major browsers

* fix(SW-2786): Updated to height as min-height doesn't work for child having 100% correctly


Approved-by: Bianca Widstam
This commit is contained in:
Hrishikesh Vaipurkar
2025-08-22 13:11:32 +00:00
parent d16c6b8082
commit d6b7361a26
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
.imageContainer {
margin: 0 calc(-1 * var(--Spacing-x2));
min-height: 190px;
height: 190px;
position: relative;
border-radius: var(--Corner-radius-lg) var(--Corner-radius-lg) 0 0;
}

View File

@@ -54,6 +54,7 @@ const RoomImage = memo(function RoomImage({
title={roomType}
fill
imageCountPosition="top"
sizes="(max-width: 768px) 768px, 420px"
/>
<div className={styles.toggleSidePeek}>
{roomTypeCode && room && (