Skip to content

Commit ebb87fa

Browse files
Tighten Nav for mobile
Three changes that reclaim horizontal room on narrow viewports so the Docs link stops drifting into the logo: - Nav side padding 24px -> 16px on mobile (px-4 sm:px-6) - Link group gap 8px -> 6px on mobile (gap-1.5 sm:gap-2) - Hide the theme toggle on mobile (the React island lives in a hidden sm:flex wrapper); mode is still respected from cookies and the toggle is back at sm+ Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 6478021 commit ebb87fa

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

apps/marketing/src/components/Nav.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ const isDocsActive = currentPath.startsWith('/docs/');
66
const isBlogActive = currentPath.startsWith('/blog/');
77
const isWorkspacesActive = currentPath.startsWith('/workspaces/');
88
---
9-
<nav class="fixed top-0 left-0 right-0 h-12 flex items-center justify-between px-6 bg-background/80 backdrop-blur-sm border-b border-border/30 z-50">
9+
<nav class="fixed top-0 left-0 right-0 h-12 flex items-center justify-between px-4 sm:px-6 bg-background/80 backdrop-blur-sm border-b border-border/30 z-50">
1010
<div class="flex items-center gap-2">
1111
<a href="/" class="text-sm font-semibold tracking-tight hover:text-primary transition-colors">
1212
Plannotator
1313
</a>
1414
</div>
1515
<div class="flex items-center gap-3">
16-
<div class="flex items-center gap-2 text-xs">
16+
<div class="flex items-center gap-1.5 sm:gap-2 text-xs">
1717
<a
1818
href="/docs/getting-started/installation/"
1919
class:list={[
@@ -54,6 +54,8 @@ const isWorkspacesActive = currentPath.startsWith('/workspaces/');
5454
GitHub
5555
</a>
5656
</div>
57-
<ModeToggleIsland client:only="react" />
57+
<div class="hidden sm:flex">
58+
<ModeToggleIsland client:only="react" />
59+
</div>
5860
</div>
5961
</nav>

0 commit comments

Comments
 (0)