From 5fe2a5cbb1f2d0f6c040f5705bc199157f12d38a Mon Sep 17 00:00:00 2001 From: scotttong Date: Tue, 2 Jun 2026 23:43:49 -0700 Subject: [PATCH] PAP-61: fix agent names collapsing to zero width in agents list view The list/org rows packed adapter + model + last-heartbeat + status + four action buttons into a shrink-0 trailing block. On typical laptop widths this squeezed the flex-1 min-w-0 title to zero, so agent names were invisible. - EntityRow: add optional titleClassName so callers can guarantee a min title width - Agents list + org rows: give the name a min-w-[7rem] floor; move the wide adapter (w-28) + model (w-36) columns to 2xl only, keeping last-heartbeat + status + actions at all widths. Names now always render; metadata reappears on wide screens. Co-Authored-By: Paperclip --- ui/src/components/EntityRow.tsx | 4 +++- ui/src/pages/Agents.tsx | 11 ++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ui/src/components/EntityRow.tsx b/ui/src/components/EntityRow.tsx index 5bbef445f23..bbb5ad0a47d 100644 --- a/ui/src/components/EntityRow.tsx +++ b/ui/src/components/EntityRow.tsx @@ -12,6 +12,7 @@ interface EntityRowProps { to?: string; onClick?: () => void; className?: string; + titleClassName?: string; reserveSubtitleSpace?: boolean; } @@ -25,6 +26,7 @@ export function EntityRow({ to, onClick, className, + titleClassName, reserveSubtitleSpace, }: EntityRowProps) { const isClickable = !!(to || onClick); @@ -38,7 +40,7 @@ export function EntityRow({ const content = ( <> {leading &&
{leading}
} -
+
{identifier && ( diff --git a/ui/src/pages/Agents.tsx b/ui/src/pages/Agents.tsx index 814a42133f5..900c64c41bc 100644 --- a/ui/src/pages/Agents.tsx +++ b/ui/src/pages/Agents.tsx @@ -238,6 +238,7 @@ export function Agents() { )} - + {getAdapterLabel(agent.adapterType)} {getConfiguredModel(agent) ?? "—"} @@ -417,7 +418,7 @@ function OrgTreeNode({ -
+
{node.name} {roleLabels[node.role] ?? node.role} @@ -446,11 +447,11 @@ function OrgTreeNode({ )} {agent && ( <> - + {getAdapterLabel(agent.adapterType)} {getConfiguredModel(agent) ?? "—"}