mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
FlatRow lays out label…gap…value across a `justify-between` row, but the shared CommitField input it wraps had no text-align, so its text hugged the LEFT edge of the value's own (often much wider) right-hand box — looking left-aligned relative to the row, out of step with FlatSelectRow and FlatSlider, which already right-align. Added an optional `align` prop to CommitField (default "left", preserving the legacy panel's MetricField/DetailField layouts where label-then-value sits inline and left reads naturally) and pass `align="right"` from FlatRow. Left the Motion Timing row's Start/End/Duration cells alone — those stack label-above-value in a grid, a different pattern from the inline label…value row this fix targets. New tests: FlatRow's input has `text-right` (not `text-left`); the legacy MetricField's input keeps `text-left` (not `text-right`), pinning CommitField's default so the shared component doesn't drift for the panel that didn't ask for this. Full studio suite (2645 tests) green; typecheck/oxlint/oxfmt clean.