fix(BOOK-770): Re added max-width to preamble on collection pages

Approved-by: Bianca Widstam
This commit is contained in:
Erik Tiekstra
2026-01-28 12:03:05 +00:00
parent ead34c07ee
commit 1bb1a7e139
2 changed files with 6 additions and 8 deletions

View File

@@ -59,18 +59,16 @@
justify-items: start; justify-items: start;
} }
.intro {
display: grid;
max-width: var(--max-width-text-block);
gap: var(--Space-x3);
}
.heading { .heading {
color: var(--Text-Heading); color: var(--Text-Heading);
text-wrap: balance; text-wrap: balance;
hyphens: auto; hyphens: auto;
} }
.preamble {
max-width: var(--max-width-text-block);
}
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@@ -101,7 +101,7 @@ export async function CollectionPage() {
<div className={styles.headerContent}> <div className={styles.headerContent}>
{showHero ? ( {showHero ? (
<Typography variant="Body/Lead text"> <Typography variant="Body/Lead text">
<p>{header.preamble}</p> <p className={styles.preamble}>{header.preamble}</p>
</Typography> </Typography>
) : ( ) : (
<> <>
@@ -109,7 +109,7 @@ export async function CollectionPage() {
<h1 className={styles.heading}>{header.heading}</h1> <h1 className={styles.heading}>{header.heading}</h1>
</Typography> </Typography>
<Typography variant="Body/Lead text"> <Typography variant="Body/Lead text">
<p>{header.preamble}</p> <p className={styles.preamble}>{header.preamble}</p>
</Typography> </Typography>
{header.top_primary_button?.url ? ( {header.top_primary_button?.url ? (
<ButtonLink <ButtonLink