Skip to content

Commit

Permalink
fix: search button in mobile navbar disappearance (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
DikDns authored Jul 12, 2024
1 parent d6c8efc commit 2749716
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions src/components/common/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,25 @@ export function Navbar({ session }: { session: Session | null }) {
)}

{!session && (
<Link
href="/login"
className={cn(buttonVariants({ size: "sm", variant: "outline" }))}
>
Login
</Link>
<div className="flex items-center gap-x-4">
<Link
href="/search"
className={cn(
buttonVariants({ variant: "outline", size: "icon" }),
"w-10 md:hidden",
)}
>
<SearchIcon className="h-5 w-5" />
</Link>
<Link
href="/login"
className={cn(
buttonVariants({ size: "sm", variant: "outline" }),
)}
>
Login
</Link>
</div>
)}
</div>
</nav>
Expand Down

0 comments on commit 2749716

Please sign in to comment.