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(" ")}
>