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: search button in mobile navbar disappearance #27

Merged
merged 14 commits into from
Jul 12, 2024
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