fix(sidebar): align search bar with nav items

Remove extra px-2 from search container and change button px-2.5 to px-2
so the search icon aligns at the same left offset as nav item icons.
This commit is contained in:
Jiayuan Zhang
2026-04-10 02:07:54 +08:00
parent 3808f99e82
commit 2cc6d544b5

View File

@@ -179,10 +179,10 @@ export function AppSidebar() {
</DropdownMenu>
</SidebarMenuItem>
</SidebarMenu>
<div className="flex items-center gap-1.5 px-2">
<div className="flex items-center gap-1.5">
<button
type="button"
className="flex h-8 flex-1 items-center gap-2 rounded-md border bg-background px-2.5 text-sm text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors"
className="flex h-8 flex-1 items-center gap-2 rounded-md border bg-background px-2 text-sm text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors"
onClick={() => useSearchStore.getState().setOpen(true)}
>
<Search className="size-3.5 shrink-0" />