Skip to content

feat(studio): compact and comfortable timeline track heights - #9276

Open
kukirin-ui wants to merge 2 commits into
heygen-com:mainfrom
kukirin-ui:feat/timeline-track-density
Open

kukirin-ui wants to merge 2 commits into
heygen-com:mainfrom
kukirin-ui:feat/timeline-track-density

Conversation

@kukirin-ui

Copy link
Copy Markdown

Closes #5588. Compact/comfortable toggle for timeline tracks; the height is read from one place (useTimelineTrackHeight), TRACK_H stays the comfortable height, layout tests at both heights; the choice is kept in Studio's UI preferences.

Add a toolbar toggle that switches the timeline between the existing 48px
comfortable tracks and 32px compact tracks. The choice is stored with the
other studio UI preferences, and every measure that used TRACK_H now reads
the height from the row geometry or useTimelineTrackHeight. TRACK_H stays
exported as the comfortable height.

Refs heygen-com#5588
…erence store

- Timeline.trackDensity.test.tsx mounts the timeline at compact density and pins the
  expanded clip bar height, the property-lane top and the ghost lane's top and height.
- The density preference moves from playerStore into useTimelineTrackDensity, next to
  useTimelineTrackHeight, so playerStore stays under the 600-line limit.
- The track height toggle's tooltip always reads "Compact track height", matching its
  accessible name; aria-pressed and the accent fill carry the state.
- TRACKS_BOTTOM_PAD is gone: the default bottom pad is one track at the current density.
- The TRACK_H fallbacks in getTimelineRowGeometry, getTimelineRowHeight and
  computeDragPreview say that callers should pass a geometry.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Timeline: compact and comfortable track heights

1 participant