Skip to content

Commit 523a2f7

Browse files
authored
Merge pull request #1142 from datum-cloud/fix/mobile-nav-on-mobile
Fix: Add hero container ID and mobile overflow fix
2 parents e0d2d98 + 8ab8704 commit 523a2f7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/components/home/Hero.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ const { title = '', description = '', class: className } = Astro.props as HeroPr
1313

1414
<header id="hero-header" class:list={['hero--main relative z-11', className]}>
1515
<Announcement />
16-
<div class="bg-midnight-fjord relative aspect-auto h-auto w-full overflow-hidden">
16+
<div
17+
id="hero-container"
18+
class="bg-midnight-fjord relative aspect-auto h-auto w-full overflow-hidden"
19+
>
1720
<Nav showLoginButton={true} showGithubButton={false} />
1821

1922
{/* Hero text */}

src/v1/styles/components-hero.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
@layer components {
2+
body.mobile-menu-open #hero-header #hero-container {
3+
@apply overflow-visible!;
4+
}
5+
26
.hero--main {
37
@apply relative flex flex-col justify-center;
48

0 commit comments

Comments
 (0)