Skip to content

Commit 2f857db

Browse files
committed
Fix duplicated mobile navigation
1 parent 8f8d7cd commit 2f857db

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/Header.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const navItems = [
2222
<div class="title-wrapper sl-flex">
2323
<SiteTitle {...Astro.props} />
2424
</div>
25-
<nav class="mobile-site-nav md:sl-hidden" aria-label="Main">
25+
<nav class="mobile-site-nav sl-flex md:sl-hidden" aria-label="Main">
2626
{navItems.map(({ label, href, active }) => (
2727
<a href={href} class:list={['nav-link', 'mobile-nav-link', { active }]}>{label}</a>
2828
))}
@@ -66,7 +66,6 @@ const navItems = [
6666
}
6767

6868
.mobile-site-nav {
69-
display: flex;
7069
flex: 1;
7170
min-width: 0;
7271
gap: 0.35rem;

0 commit comments

Comments
 (0)