Merged in fix/BOOK-429-image-meeting-card (pull request #3364)
fix(BOOK-429): adjust image layout for meeting room cards * fix(BOOK-429): adjust image layout for meeting room cards Approved-by: Matilda Haneling Approved-by: Anton Gunnarsson Approved-by: Matilda Landström
This commit is contained in:
@@ -8,8 +8,14 @@
|
|||||||
|
|
||||||
.image {
|
.image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200px;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
border-radius: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.imageWrapper {
|
||||||
|
position: relative;
|
||||||
|
height: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
@@ -41,7 +47,7 @@
|
|||||||
grid-template-columns: minmax(250px, 350px) auto;
|
grid-template-columns: minmax(250px, 350px) auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image {
|
.imageWrapper {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,18 +43,20 @@ export default async function HotelListingItem({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<article className={styles.container}>
|
<article className={styles.container}>
|
||||||
{image?.src ? (
|
<div className={styles.imageWrapper}>
|
||||||
<Image
|
{image?.src ? (
|
||||||
src={image.src}
|
<Image
|
||||||
alt={image.altText || image.altText_En}
|
src={image.src}
|
||||||
width={400}
|
alt={image.altText || image.altText_En}
|
||||||
height={300}
|
fill
|
||||||
sizes="(min-width: 768px) 400px, 100vw"
|
sizes="(min-width: 768px) 700px, 100vw"
|
||||||
className={styles.image}
|
className={styles.image}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<ImageFallback className={styles.image} />
|
<ImageFallback className={styles.image} />
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
<section className={styles.content}>
|
<section className={styles.content}>
|
||||||
<div className={styles.intro}>
|
<div className={styles.intro}>
|
||||||
<HotelLogoIcon hotelId={id} hotelType={hotelType} />
|
<HotelLogoIcon hotelId={id} hotelType={hotelType} />
|
||||||
|
|||||||
Reference in New Issue
Block a user