From 09aa7b188770c5c25c97493967f5a7ef74815e91 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Fri, 6 Mar 2026 22:30:40 +0200 Subject: [PATCH] fix(site): center image attachment icon in chat input button (#22725) The Button base styles apply `[&>svg]:p-0.5` (2px padding) to child SVGs. In the small `size-7` rounded attach button, this extra padding shifts the 16x16 ImageIcon off-center. Override with `[&>svg]:p-0` to remove it. --- site/src/pages/AgentsPage/AgentChatInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/src/pages/AgentsPage/AgentChatInput.tsx b/site/src/pages/AgentsPage/AgentChatInput.tsx index 9df0d0489e..ec5b8bf451 100644 --- a/site/src/pages/AgentsPage/AgentChatInput.tsx +++ b/site/src/pages/AgentsPage/AgentChatInput.tsx @@ -639,7 +639,7 @@ export const AgentChatInput = memo( type="button" variant="outline" size="icon" - className="size-7 shrink-0 rounded-full" + className="size-7 shrink-0 rounded-full [&>svg]:p-0" onClick={() => fileInputRef.current?.click()} disabled={isDisabled} aria-label="Attach files" @@ -652,7 +652,7 @@ export const AgentChatInput = memo(