diff --git a/src/features/workbench/map-workbench-page.tsx b/src/features/workbench/map-workbench-page.tsx index ee5bdf2..bc0a876 100644 --- a/src/features/workbench/map-workbench-page.tsx +++ b/src/features/workbench/map-workbench-page.tsx @@ -925,13 +925,7 @@ export function MapWorkbenchPage({ { ...WORKBENCH_LAYOUT_CSS_VARIABLES, "--workbench-agent-current-width": `${currentAgentWidth}px`, - "--workbench-timeline-height": `${ - !timelineVisible - ? 0 - : !isLargeScreen - ? OPERATIONAL_TIMELINE_LAYOUT.mobileSummaryHeight + timelineBottom - : OPERATIONAL_TIMELINE_LAYOUT[timelineMode].height + timelineBottom - }px` + "--workbench-timeline-height": `${OPERATIONAL_TIMELINE_LAYOUT.overlayReservedHeight}px` } as CSSProperties } > @@ -1094,7 +1088,7 @@ export function MapWorkbenchPage({ {shouldShowTaskTicker ? ( { + it("does not reserve workspace layout space for the floating timeline", () => { + expect(OPERATIONAL_TIMELINE_LAYOUT.overlayReservedHeight).toBe(0); + }); + it("creates linked plan and actual events for active work orders", () => { const events = createOperationalEvents([workOrder]); expect(events.map((event) => event.lane)).toEqual(["plan", "actual"]); diff --git a/src/features/workbench/operational-timeline/operational-timeline-model.ts b/src/features/workbench/operational-timeline/operational-timeline-model.ts index 034441e..49ffb6a 100644 --- a/src/features/workbench/operational-timeline/operational-timeline-model.ts +++ b/src/features/workbench/operational-timeline/operational-timeline-model.ts @@ -38,7 +38,8 @@ export const OPERATIONAL_TIMELINE_LAYOUT = { mapScaleSafeWidth: 520, floatingGap: 48, edgeInset: 24, - scaleCollisionOffset: 56 + scaleCollisionOffset: 56, + overlayReservedHeight: 0 } as const; export type TimelineScaleLayout = { diff --git a/src/features/workbench/workspace/artifact-peek-bar.tsx b/src/features/workbench/workspace/artifact-peek-bar.tsx index 6b3d745..b422ce1 100644 --- a/src/features/workbench/workspace/artifact-peek-bar.tsx +++ b/src/features/workbench/workspace/artifact-peek-bar.tsx @@ -17,7 +17,7 @@ export function ArtifactPeekBar({