Timeline tweaks (#10693)

* make segment height static

* fix timeline overscrolling

* better alignment of motion timeline segments
This commit is contained in:
Josh Hawkins
2024-03-26 16:36:28 -05:00
committed by GitHub
parent 1377d33e25
commit c82ed43c13
10 changed files with 48 additions and 55 deletions

View File

@@ -57,7 +57,7 @@ export function SummaryTimeline({
// Generate segments for the timeline
const generateSegments = useCallback(() => {
const segmentCount = reviewTimelineDuration / segmentDuration;
const segmentCount = Math.ceil(reviewTimelineDuration / segmentDuration);
if (segmentHeight) {
return Array.from({ length: segmentCount }, (_, index) => {