Merged in fix/LOY-528-contenpage-gap (pull request #3479)

fix(LOY-528): fix gap issues on content pages

* fix(LOY-528): fix gap issues


Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2026-01-23 11:49:10 +00:00
parent ec78befb50
commit 5171d2d4d7
3 changed files with 17 additions and 6 deletions

View File

@@ -27,9 +27,11 @@ export default async function HotelListing({
return ( return (
<Section> <Section>
{heading ? (
<Typography variant="Title/sm"> <Typography variant="Title/sm">
<h3 className={styles.heading}>{heading}</h3> <h3 className={styles.heading}>{heading}</h3>
</Typography> </Typography>
) : null}
{hotels.map((hotelData) => ( {hotels.map((hotelData) => (
<HotelListingItem <HotelListingItem
key={hotelData.hotel.name} key={hotelData.hotel.name}

View File

@@ -54,11 +54,15 @@
@media (min-width: 1367px) { @media (min-width: 1367px) {
.content { .content {
display: grid; display: grid;
grid-template-areas: "main sidebar";
grid-template-columns: var(--max-width-text-block) 1fr;
gap: var(--Space-x9);
}
.content.hasHeader {
grid-template-areas: grid-template-areas:
"hero hero" "hero hero"
"main sidebar"; "main sidebar";
grid-template-columns: var(--max-width-text-block) 1fr;
gap: var(--Space-x9);
} }
.main { .main {

View File

@@ -1,3 +1,4 @@
import { cx } from "class-variance-authority"
import { Suspense } from "react" import { Suspense } from "react"
import { BreadcrumbsSkeleton } from "@scandic-hotels/design-system/Breadcrumbs" import { BreadcrumbsSkeleton } from "@scandic-hotels/design-system/Breadcrumbs"
@@ -78,7 +79,11 @@ export async function ContentPage() {
</div> </div>
) : null} ) : null}
<div className={styles.content}> <div
className={cx(styles.content, {
[styles.hasHeader]: hero_video || hero_image,
})}
>
{hero_video || hero_image ? ( {hero_video || hero_image ? (
<> <>
{hero_video ? ( {hero_video ? (