refactor: timeline design review

This commit is contained in:
Carlos Valente
2025-07-14 08:55:45 +02:00
parent 55e34b5f9a
commit 6f9e13948d
4 changed files with 63 additions and 41 deletions
+2 -1
View File
@@ -38,7 +38,7 @@ function Timeline({ firstStart, rundown, selectedEventId, totalDuration }: Timel
followRef: selectedRef,
scrollRef: scrollContainerRef,
doFollow: autosize,
hasSelectedElement: selectedEventId !== null,
selectedEventId: selectedEventId,
// No offset when hiding past events to ensure content starts at 0
leftOffset: hidePast ? 0 : screenWidth / 6,
});
@@ -92,6 +92,7 @@ function Timeline({ firstStart, rundown, selectedEventId, totalDuration }: Timel
colour={event.colour}
delay={event.delay ?? 0}
duration={event.duration}
hasLink={Boolean(event.linkStart)}
left={position.left}
status={statusMap[event.id]}
start={event.timeStart + (event.dayOffset ?? 0) * dayInMs}