mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-10 22:20:14 +00:00
Timeline UI - Highlight clips visible at the playhead in the primary color; others share one neutral color - Minimalist rounded clips, single-color track rows, no gutter icons or superscript labels - Per-track eye toggle and a per-element hide button in the design panel - Ruler zoom fixes: sub-second tick intervals and correct label formatting at high zoom - Sticky gutter so track controls stay visible while scrolling WYSIWYG visibility (data-hidden) - Runtime honors data-hidden (display:none), so hiding affects the render, not just the preview - HTML stays the source of truth; hide state persists and round-trips on reload Split several studio files to stay under the 600-line cap; pure relocations, no behavior change.
11 lines
414 B
TypeScript
11 lines
414 B
TypeScript
import { getTimelineTrackStyle, type TimelineTrackStyle } from "./timelineTheme";
|
|
|
|
export type TrackVisualStyle = TimelineTrackStyle;
|
|
|
|
export function getTrackStyle(tag: string): TrackVisualStyle {
|
|
// Defensive: callers may pass an empty/undefined tag; fall back to "div"
|
|
// (restores the #1679 null-guard that a restack had dropped).
|
|
const safeTag = tag || "div";
|
|
return getTimelineTrackStyle(safeTag);
|
|
}
|