Skip to content

Commit a0286aa

Browse files
ndooclaude
andcommitted
Fix hero buttons overflowing on narrow screens
The button row used flex with fixed margin-left spacing and no wrapping, so on small viewports the first and last buttons got clipped by the hero's overflow:hidden. Switch to flex-wrap with a gap so buttons stack cleanly instead of overflowing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent e9ee1a4 commit a0286aa

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ function HomepageHeader() {
2323
Join the Mesh
2424
</Link>
2525
<Link
26-
className="button button--secondary button--lg margin-left--md"
26+
className="button button--secondary button--lg"
2727
to="/about">
2828
Learn More
2929
</Link>
3030
<Link
31-
className="button button--secondary button--lg margin-left--md"
31+
className="button button--secondary button--lg"
3232
to="/events">
3333
Upcoming Events
3434
</Link>

src/pages/index.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
.buttons {
2020
display: flex;
21+
flex-wrap: wrap;
2122
align-items: center;
2223
justify-content: center;
24+
gap: 1rem;
2325
}

0 commit comments

Comments
 (0)