fix: expand session summary prose with panel
This commit is contained in:
@@ -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]");
|
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 () => {
|
test("shows Resume for resumable, hides it for finalized", async () => {
|
||||||
const { rerender } = wrap(<SessionDocumentsPanel session={base} onClose={vi.fn()} onResume={vi.fn()} />);
|
const { rerender } = wrap(<SessionDocumentsPanel session={base} onClose={vi.fn()} onResume={vi.fn()} />);
|
||||||
expect(await screen.findByRole("button", { name: /resume/i })).toBeInTheDocument();
|
expect(await screen.findByRole("button", { name: /resume/i })).toBeInTheDocument();
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ export function SessionDocumentsPanel({ session, onClose, onResume, desktopSplit
|
|||||||
<section
|
<section
|
||||||
key={doc.key}
|
key={doc.key}
|
||||||
className={[
|
className={[
|
||||||
doc.format === "sql" ? "w-full" : "max-w-[76ch]",
|
"w-full",
|
||||||
idx > 0 ? "border-t border-border/50 pt-7" : "",
|
idx > 0 ? "border-t border-border/50 pt-7" : "",
|
||||||
].join(" ")}
|
].join(" ")}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user