Further improve mobile friendliness

This commit is contained in:
sabaimran
2024-12-19 21:34:04 -08:00
parent 9d5480d886
commit b644bb8628
2 changed files with 23 additions and 9 deletions

View File

@@ -86,12 +86,20 @@ export function AppSidebar(props: AppSidebarProps) {
<SidebarHeader>
<SidebarMenu className="p-0 m-0">
<SidebarMenuItem className="p-0 m-0">
<SidebarMenuButton asChild>
<a className="flex items-center gap-2 no-underline" href="/">
<KhojLogo className="w-14 h-auto" />
<span className="text-lg">Khoj</span>
</a>
</SidebarMenuButton>
{open ? (
<SidebarMenuButton>
<a className="p-0 no-underline" href="/">
<KhojLogoType className="h-auto w-16" />
</a>
</SidebarMenuButton>
) : (
<SidebarMenuButton asChild>
<a className="flex items-center gap-2 no-underline" href="/">
<KhojLogo className="w-14 h-auto" />
<span className="text-lg">Khoj</span>
</a>
</SidebarMenuButton>
)}
</SidebarMenuItem>
</SidebarMenu>
</SidebarHeader>