Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
fix(web): keep message sheet header clear of close button
Gusf57368f7920f
diff --git a/src/web/src/components/community/message-context-sheet-header.test.ts b/src/web/src/components/community/message-context-sheet-header.test.tsnew file mode 100644index 000000000..157875aa0--- /dev/null+++ b/src/web/src/components/community/message-context-sheet-header.test.ts@@ -0,0 +1,19 @@+import { readFileSync } from "node:fs"+import { describe, expect, it } from "vitest"++describe("MessageContextSheet header", () => {+ it("reserves the close-button lane while truncating only the channel label", () => {+ const source = readFileSync(new URL("./message-context-sheet.tsx", import.meta.url), "utf8")++ expect(source).toContain(+ '<SheetHeader className="gap-0 border-b-0 py-3 pr-14 sm:pr-14">',+ )+ expect(source).toContain(+ '<SheetTitle className="flex w-full min-w-0 items-center gap-1.5 text-lg font-semibold tracking-tight">',+ )+ expect(source).toContain('<span className="min-w-0 truncate">{channelLabel}</span>')+ expect(source).toContain(+ '<span className="shrink-0 font-mono text-base font-normal text-muted-foreground">#{targetSeq ?? ""}</span>',+ )+ })+})diff --git a/src/web/src/components/community/message-context-sheet.tsx b/src/web/src/components/community/message-context-sheet.tsxindex 8615d3ec2..87037dc06 100644--- a/src/web/src/components/community/message-context-sheet.tsx+++ b/src/web/src/components/community/message-context-sheet.tsx@@ -383,8 +383,8 @@ export function MessageContextSheet({channel) for one message-side-sheet mental model. Frameless (noborder) matches the existing quiet header. Falls back to just `#N`if no label was passed (older callers). */}- <SheetHeader className="gap-0 border-b-0 py-3">- <SheetTitle className="flex items-center gap-1.5 text-lg font-semibold tracking-tight">+ <SheetHeader className="gap-0 border-b-0 py-3 pr-14 sm:pr-14">+ <SheetTitle className="flex w-full min-w-0 items-center gap-1.5 text-lg font-semibold tracking-tight">{channelLabel ? (<><ChannelIcon className="shrink-0 text-muted-foreground" />