Timeline: compact and comfortable track heights
Track height is a fixed constant (TRACK_H in packages/studio/src/player/components/timelineLayout.ts), so long compositions with many tracks need a lot of scrolling.
Done when
- A timeline setting switches between compact and comfortable heights and is remembered.
- Every measure that used
TRACK_Hreads the current height from one place. - Tests for layout at both heights.
Note: other code imports TRACK_H directly; keep it exported (as the comfortable height) so those imports keep working.
Desktop candidate: this component is also used by the HyperFrames Desktop app, so the change reaches it with the next version bump.
Reviewer: @miguel-heygen. New to the repo? Start with CONTRIBUTING.md; run bun install, then the package's tests, before opening a PR.
I'd like to take this. Plan: add a compact (32px) option next to the current 48px, toggled from the timeline toolbar and saved with the other studio UI prefs, with TRACK_H kept as the comfortable height. I have it working locally with tests, so I can open a PR once you're ok with it.
@kukirin-ui are you still working on this? If not, I'd like to pick it up (compact/comfortable toggle, height read from one place, TRACK_H kept as comfortable height, layout tests at both heights). @miguel-heygen
@scaryvibing thanks for asking: I'm still on it, the PR is open now (compact/comfortable toggle, one source for the height, TRACK_H as comfortable, tests at both heights).