Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/mobile-navbar-alignment-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'nextra-theme-docs': patch
---

fix(docs-theme): align navbar mobile padding with article content

Fixes #4574 - Changed navbar horizontal padding on mobile from 1.5rem to 1rem to match article content padding, eliminating visual misalignment.
2 changes: 1 addition & 1 deletion packages/nextra-theme-docs/src/components/navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const Navbar: FC<NavbarProps> = ({
<nav
style={{ height: 'var(--nextra-navbar-height)' }}
className={cn(
'x:mx-auto x:flex x:max-w-(--nextra-content-width) x:items-center x:gap-4 x:pl-[max(env(safe-area-inset-left),1.5rem)] x:pr-[max(env(safe-area-inset-right),1.5rem)]',
'x:mx-auto x:flex x:max-w-(--nextra-content-width) x:items-center x:gap-4 x:pl-[max(env(safe-area-inset-left),1rem)] x:pr-[max(env(safe-area-inset-right),1rem)] x:md:pl-[max(env(safe-area-inset-left),1.5rem)] x:md:pr-[max(env(safe-area-inset-right),1.5rem)]',
'x:justify-end',
className
)}
Expand Down