Repository navigation
feat(studio): compact and comfortable timeline track heights - #9276
Open
kukirin-ui wants to merge 2 commits into
Open
kukirin-ui wants to merge 2 commits into
kukirin-ui wants to merge 2 commits into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.