From f688e85898f7c46ce61cc077c03db6d7eb0970e6 Mon Sep 17 00:00:00 2001 From: Danielle Maywood Date: Mon, 20 Apr 2026 10:37:22 +0100 Subject: [PATCH] fix(site): prevent workspace icon from shrinking in chat pill (#24521) The workspace pill in the chat box was shrinking smaller than the size of its fixed content (icon, chevron, padding), causing the workspace icon and chevron to become distorted or overflow. --- site/src/pages/AgentsPage/components/WorkspacePill.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/src/pages/AgentsPage/components/WorkspacePill.tsx b/site/src/pages/AgentsPage/components/WorkspacePill.tsx index 14605846d3..dba9558045 100644 --- a/site/src/pages/AgentsPage/components/WorkspacePill.tsx +++ b/site/src/pages/AgentsPage/components/WorkspacePill.tsx @@ -92,12 +92,12 @@ export const WorkspacePill: FC = ({ type="button" aria-label={`${workspace.name} workspace menu`} className={cn( - "inline-flex min-w-0 max-w-[200px] items-center gap-1 rounded-full bg-surface-secondary px-2 py-0.5 text-xs font-medium text-content-secondary", + "inline-flex min-w-[2.75rem] max-w-[200px] items-center gap-1 rounded-full bg-surface-secondary px-2 py-0.5 text-xs font-medium text-content-secondary overflow-hidden", "cursor-pointer border-0 transition-colors hover:bg-surface-tertiary hover:text-content-primary", )} > - - {workspace.name} + + {workspace.name} {/* The menu opens upward (side="top"), so the chevron points away from the menu when closed (default) and toward it when open (rotate-180). */}