hyperframes icon indicating copy to clipboard operation
hyperframes copied to clipboard

Timeline: compact and comfortable track heights

Open miguel-heygen opened this issue 1 month ago • 3 comments

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_H reads 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.

miguel-heygen avatar Oct 14 '26 04:10 miguel-heygen

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 avatar Oct 16 '26 11:10 kukirin-ui

@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 avatar Dec 02 '26 13:12 scaryvibing

@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).

kukirin-ui avatar Dec 02 '26 14:12 kukirin-ui