diff --git a/apps/fabro-web/app/routes/run-terminal.test.ts b/apps/fabro-web/app/routes/run-terminal.test.ts index 0fc17f89d..fce000b49 100644 --- a/apps/fabro-web/app/routes/run-terminal.test.ts +++ b/apps/fabro-web/app/routes/run-terminal.test.ts @@ -3,6 +3,7 @@ import { describe, expect, test } from "bun:test"; import { buildTerminalWebSocketUrl, parseTerminalServerMessage, + TERMINAL_DOCK_CLEARANCE_CLASS, } from "./run-terminal"; function locationLike(url: string): Location { @@ -31,4 +32,8 @@ describe("run terminal route helpers", () => { expect(parseTerminalServerMessage('{"type":"unknown"}')).toBeNull(); expect(parseTerminalServerMessage("{")).toBeNull(); }); + + test("reserves space above the run steering bar", () => { + expect(TERMINAL_DOCK_CLEARANCE_CLASS).toContain("--fabro-interview-dock-clearance"); + }); }); diff --git a/apps/fabro-web/app/routes/run-terminal.tsx b/apps/fabro-web/app/routes/run-terminal.tsx index 38b0371a3..627224ae7 100644 --- a/apps/fabro-web/app/routes/run-terminal.tsx +++ b/apps/fabro-web/app/routes/run-terminal.tsx @@ -18,6 +18,8 @@ import { apiData, humanInTheLoopApi } from "../lib/api-client"; import { useRunState } from "../lib/queries"; export const handle = { wide: true, fullHeight: true }; +export const TERMINAL_DOCK_CLEARANCE_CLASS = + "pb-[calc(1.5rem+var(--fabro-interview-dock-clearance,0px))]"; type ConnectionStatus = "connecting" | "ready" | "closed" | "error"; @@ -249,7 +251,10 @@ export default function RunTerminal({ params }: { params: { id: string } }) { }, [connectionKey, params.id]); return ( -
+