From fa8d81fb000a8d31749fb41b3d098cb6799a6ae2 Mon Sep 17 00:00:00 2001 From: "t3-code[bot]" <269035359+t3-code[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2026 15:33:07 +0000 Subject: [PATCH] fix(web): align subagent bar corners Co-authored-by: Wout Stiens <71498452+StiensWout@users.noreply.github.com> --- apps/web/src/components/chat/AgentSpawnCtaRow.test.ts | 11 +++++++++++ apps/web/src/components/chat/MessagesTimeline.tsx | 9 ++++----- 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 apps/web/src/components/chat/AgentSpawnCtaRow.test.ts diff --git a/apps/web/src/components/chat/AgentSpawnCtaRow.test.ts b/apps/web/src/components/chat/AgentSpawnCtaRow.test.ts new file mode 100644 index 0000000000..d1b6d038f1 --- /dev/null +++ b/apps/web/src/components/chat/AgentSpawnCtaRow.test.ts @@ -0,0 +1,11 @@ +import { describe, expect, it } from "vite-plus/test"; + +import { AGENT_SPAWN_CTA_CLASS_NAME } from "./MessagesTimeline"; + +describe("AgentSpawnCtaRow", () => { + it("keeps both rounded ends inside the timeline viewport", () => { + expect(AGENT_SPAWN_CTA_CLASS_NAME).not.toContain("-mx-1"); + expect(AGENT_SPAWN_CTA_CLASS_NAME).toContain("w-full"); + expect(AGENT_SPAWN_CTA_CLASS_NAME).toContain("rounded-md"); + }); +}); diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsx index c6e28dcef5..747ce9bc26 100644 --- a/apps/web/src/components/chat/MessagesTimeline.tsx +++ b/apps/web/src/components/chat/MessagesTimeline.tsx @@ -2124,6 +2124,9 @@ const stopRowToggle = (e: { stopPropagation: () => void }) => e.stopPropagation( * only roster. Freezes to past tense when every member settles. Static dot, * no animation. */ +export const AGENT_SPAWN_CTA_CLASS_NAME = + "flex w-full items-center gap-2 rounded-md border border-border/60 bg-card/50 px-2.5 py-1.5 text-left text-[13px] transition hover:bg-accent/50"; + const AgentSpawnCtaRow = memo(function AgentSpawnCtaRow(props: { workEntry: TimelineWorkEntry }) { const { workEntry } = props; const { agentPanelModel, onOpenAgents } = use(TimelineRowCtx); @@ -2189,11 +2192,7 @@ const AgentSpawnCtaRow = memo(function AgentSpawnCtaRow(props: { workEntry: Time : "✓ completed"; return ( -