Skip to content

Commit be9524a

Browse files
Fix Header overflow on mobile (Grey Box issue)
1 parent 7261bee commit be9524a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/PageHeader/RootPage.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ const { title, subtitle } = Astro.props;
66
// to the header only when the filter by keyword is not present.
77
const routesWithFilter = ["/reference"];
88
const isFilterRoute = routesWithFilter.some((route) =>
9-
Astro.url.pathname.includes(route)
9+
Astro.url.pathname.includes(route),
1010
);
1111
const borderStyle = isFilterRoute ? "" : "border-b border-sidebar-type-color";
1212
---
1313

1414
<div
15-
class=`content-grid-simple min-h-[350px] h-[50vh] pt-[11.25rem] lg:pt-4xl bg-accent-color text-accent-type-color pb-md px-5 md:px-lg ${borderStyle}`
15+
class=`content-grid-simple min-h-[350px] min-h-[50vh] h-auto pt-[11.25rem] lg:pt-4xl bg-accent-color text-accent-type-color pb-md px-5 md:px-lg ${borderStyle}`
1616
>
1717
<h1 class="whitespace-pre-line col-span-full mb-5">{title}</h1>
1818
<p class="text-h3 !mt-0 mb-3xl col-span-2">{subtitle}</p>

0 commit comments

Comments
 (0)