Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: broken top nav on mobile when signed out #44

Merged
merged 1 commit into from
Jun 28, 2024
Merged
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
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
Loading