fix: expand session summary prose with panel

This commit is contained in:
2026-07-23 16:06:22 +02:00
parent 2e1bb621a0
commit 724c446087
2 changed files with 11 additions and 1 deletions
@@ -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(<SessionDocumentsPanel session={base} onClose={vi.fn()} onResume={vi.fn()} desktopSplit />);
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(<SessionDocumentsPanel session={base} onClose={vi.fn()} onResume={vi.fn()} />);
expect(await screen.findByRole("button", { name: /resume/i })).toBeInTheDocument();
+1 -1
View File
@@ -188,7 +188,7 @@ export function SessionDocumentsPanel({ session, onClose, onResume, desktopSplit
<section
key={doc.key}
className={[
doc.format === "sql" ? "w-full" : "max-w-[76ch]",
"w-full",
idx > 0 ? "border-t border-border/50 pt-7" : "",
].join(" ")}
>