fix: align scale info with floating timeline

This commit is contained in:
2026-08-19 16:45:35 +08:00
parent 45f1ebee7e
commit 3db95c27b5
5 changed files with 65 additions and 15 deletions
@@ -13,6 +13,7 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/shar
import {
clusterOperationalEvents,
getOperationalEventSummary,
OPERATIONAL_TIMELINE_LAYOUT,
type OperationalEvent,
type OperationalEventCluster,
type OperationalEventLane,
@@ -54,7 +55,7 @@ export function OperationalTimeline({
const clusters = clusterOperationalEvents(events, mobile ? 60 : 10);
const selectedEvent = events.find((event) => event.id === selectedEventId) ?? null;
const cursorPosition = getDayPosition(cursorTime);
const height = mobile ? "100%" : mode === "expanded" ? 240 : mode === "summary" ? 52 : 72;
const height = mobile ? "100%" : OPERATIONAL_TIMELINE_LAYOUT[mode].height;
if (mode === "summary" && !mobile) {
return (