From cd3210567e2eb47210bd499edcf44d2e04d62519 Mon Sep 17 00:00:00 2001 From: Urjit Chakraborty <135136842+urjitc@users.noreply.github.com> Date: Sat, 17 Jan 2026 14:13:13 -0500 Subject: [PATCH] fix: prevent sidebar button from losing padding at small widths; add shrink-0 to SidebarTrigger component to fix all usages --- src/components/chat/AppChatHeader.tsx | 1 - src/components/ui/sidebar.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/chat/AppChatHeader.tsx b/src/components/chat/AppChatHeader.tsx index 7c84b35c..b17877ba 100644 --- a/src/components/chat/AppChatHeader.tsx +++ b/src/components/chat/AppChatHeader.tsx @@ -212,7 +212,6 @@ export function AppChatHeader({ closeAllPanels(); } }} - className="shrink-0" /> diff --git a/src/components/ui/sidebar.tsx b/src/components/ui/sidebar.tsx index 7077dac2..4aba11e5 100644 --- a/src/components/ui/sidebar.tsx +++ b/src/components/ui/sidebar.tsx @@ -267,7 +267,7 @@ function SidebarTrigger({ data-slot="sidebar-trigger" aria-label="Toggle Sidebar" className={cn( - "inline-flex h-8 w-8 items-center justify-center rounded-md border border-sidebar-border text-muted-foreground hover:text-sidebar-foreground hover:bg-sidebar-accent transition-colors cursor-pointer", + "inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-sidebar-border text-muted-foreground hover:text-sidebar-foreground hover:bg-sidebar-accent transition-colors cursor-pointer", className )} onClick={(event) => {