diff --git a/apps/fabro-web/app/routes/run-overview.test.tsx b/apps/fabro-web/app/routes/run-overview.test.tsx index fdcc427f2..2000cce87 100644 --- a/apps/fabro-web/app/routes/run-overview.test.tsx +++ b/apps/fabro-web/app/routes/run-overview.test.tsx @@ -142,4 +142,25 @@ describe("RunOverview", () => { const other = renderAt("/runs/run-b"); expect(graphTransform(other)).toBe(initial); }); + + test("bounds platform records height so the graph keeps a flex share", () => { + currentGraphData = ""; + + const renderer = render(); + const scroll = renderer.root.findAll( + (n) => + typeof n.props?.className === "string" && + n.props.className.includes("max-h-[min(40vh,16rem)]") && + n.props.className.includes("overflow-y-auto"), + ); + expect(scroll).toHaveLength(1); + + const graph = renderer.root.findAll( + (n) => + typeof n.props?.className === "string" && + n.props.className.includes("graph-svg") && + n.props.className.includes("flex-1"), + ); + expect(graph).toHaveLength(1); + }); }); diff --git a/apps/fabro-web/app/routes/run-overview.tsx b/apps/fabro-web/app/routes/run-overview.tsx index 087af2a8a..fc1bdee91 100644 --- a/apps/fabro-web/app/routes/run-overview.tsx +++ b/apps/fabro-web/app/routes/run-overview.tsx @@ -154,8 +154,11 @@ export default function RunOverview() {