From 724c4460878d43a3b59095123acc7ae78e8be7fb Mon Sep 17 00:00:00 2001 From: mptyl Date: Thu, 23 Jul 2026 16:06:22 +0200 Subject: [PATCH] fix: expand session summary prose with panel --- frontend/src/shell/SessionDocumentsPanel.test.tsx | 10 ++++++++++ frontend/src/shell/SessionDocumentsPanel.tsx | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/shell/SessionDocumentsPanel.test.tsx b/frontend/src/shell/SessionDocumentsPanel.test.tsx index 97b9a130..1407a7ea 100644 --- a/frontend/src/shell/SessionDocumentsPanel.test.tsx +++ b/frontend/src/shell/SessionDocumentsPanel.test.tsx @@ -47,6 +47,16 @@ test("lets the Final SQL document use the full resized panel width", async () => expect(sqlSection?.parentElement).not.toHaveClass("max-w-[76ch]"); }); +test("lets text documents adapt to the full resized panel width", async () => { + wrap(); + + const questionSection = ( + await screen.findByRole("heading", { name: "Original question" }) + ).closest("section"); + expect(questionSection).toHaveClass("w-full"); + expect(questionSection).not.toHaveClass("max-w-[76ch]"); +}); + test("shows Resume for resumable, hides it for finalized", async () => { const { rerender } = wrap(); expect(await screen.findByRole("button", { name: /resume/i })).toBeInTheDocument(); diff --git a/frontend/src/shell/SessionDocumentsPanel.tsx b/frontend/src/shell/SessionDocumentsPanel.tsx index cf0f673b..ab347dd3 100644 --- a/frontend/src/shell/SessionDocumentsPanel.tsx +++ b/frontend/src/shell/SessionDocumentsPanel.tsx @@ -188,7 +188,7 @@ export function SessionDocumentsPanel({ session, onClose, onResume, desktopSplit
0 ? "border-t border-border/50 pt-7" : "", ].join(" ")} >