Skip to content

Commit

Permalink
fix: broken top nav on mobile when signed out (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
aamirazad authored Jun 28, 2024
1 parent 4033ba8 commit 6208749
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions src/components/topnav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,26 +144,31 @@ export function TopNav() {
<ModeToggle />
</div>
{/* Mobile dropdown */}
<div className="flex h-full items-center space-x-4 rounded-l rounded-r bg-slate-300 dark:bg-slate-700 md:hidden px-4 -mt-1">
<DropdownMenu>
<DropdownMenuTrigger>
<AlignJustify />
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuLabel>Links</DropdownMenuLabel>
<DropdownMenuItem asChild>
<Link
href="/paperless"
className={buttonVariants({ variant: "link" })}
>
Paperless-ngx
</Link>
</DropdownMenuItem>
<ImmichTooltip />
<DropdownMenuSeparator />
</DropdownMenuContent>
</DropdownMenu>
<UserSettings />
<div className="-mt-1 flex h-full items-center space-x-4 rounded-l rounded-r bg-slate-300 px-4 dark:bg-slate-700 md:hidden">
<SignedIn>
<DropdownMenu>
<DropdownMenuTrigger>
<AlignJustify />
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuLabel>Links</DropdownMenuLabel>
<DropdownMenuItem asChild>
<Link
href="/paperless"
className={buttonVariants({ variant: "link" })}
>
Paperless-ngx
</Link>
</DropdownMenuItem>
<ImmichTooltip />
<DropdownMenuSeparator />
</DropdownMenuContent>
</DropdownMenu>
<UserSettings />
</SignedIn>
<SignedOut>
<SignInButton />
</SignedOut>
</div>
</div>
</nav>
Expand Down

0 comments on commit 6208749

Please sign in to comment.