Repository navigation
Closed
Labels
desktop-candidateShared Studio code that the HyperFrames Desktop app also usesShared Studio code that the HyperFrames Desktop app also usesdifficulty/easyLocalized change with a known approach, limited risk, and straightforward verification.Localized change with a known approach, limited risk, and straightforward verification.enhancementNew feature or requestNew feature or requestgood first issueEasy, available, ready work with code/test pointers and a confirmed newcomer mentor.Easy, available, ready work with code/test pointers and a confirmed newcomer mentor.help wantedReady, available work with maintainer review support; any difficulty.Ready, available work with maintainer review support; any difficulty.triage/readyAccepted scope, current evidence, acceptance criteria, and validation path are recorded.Accepted scope, current evidence, acceptance criteria, and validation path are recorded.
Description
The timeline already has a Fit zoom mode (packages/studio/src/components/TimelineToolbar.tsx). There is no way to zoom so the selected clips fill the visible width, which is what you want when tightening a cut in a long composition.
Done when
- A toolbar action and shortcut zoom and scroll so the selected clips span the visible width, with a small margin.
- With nothing selected the action is disabled, with a tooltip saying why.
- The zoom math lives in one function with a unit test (single clip, several clips, clips at the very start and end).
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.
Metadata
Metadata
Assignees
Labels
desktop-candidateShared Studio code that the HyperFrames Desktop app also usesShared Studio code that the HyperFrames Desktop app also usesdifficulty/easyLocalized change with a known approach, limited risk, and straightforward verification.Localized change with a known approach, limited risk, and straightforward verification.enhancementNew feature or requestNew feature or requestgood first issueEasy, available, ready work with code/test pointers and a confirmed newcomer mentor.Easy, available, ready work with code/test pointers and a confirmed newcomer mentor.help wantedReady, available work with maintainer review support; any difficulty.Ready, available work with maintainer review support; any difficulty.triage/readyAccepted scope, current evidence, acceptance criteria, and validation path are recorded.Accepted scope, current evidence, acceptance criteria, and validation path are recorded.
Activity
DanielMcSheehy commentedon Oct 18, 2026
I'll take this.
The zoom math will live in one function: the union of the selected clips, fitted to the visible track with the timeline's 24px range margin, and clamped so a selection at the start or the end cannot scroll past the timeline. The toolbar action stays disabled, with a tooltip, when nothing is selected. Z is the shortcut. Unit tests cover one clip, several clips, and clips at the start and the end.
Please assign this to me.