From bd9ec023eefc4b5d26fa8b66c4338e97104f0f96 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 1 Apr 2026 19:27:49 +0200 Subject: refactor: split constants by domain and isolate timeline panel from core --- .../components/editor/panels/timeline/timeline-element.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'apps/web/src/components/editor/panels/timeline/timeline-element.tsx') diff --git a/apps/web/src/components/editor/panels/timeline/timeline-element.tsx b/apps/web/src/components/editor/panels/timeline/timeline-element.tsx index bb30b0b0..25218d78 100644 --- a/apps/web/src/components/editor/panels/timeline/timeline-element.tsx +++ b/apps/web/src/components/editor/panels/timeline/timeline-element.tsx @@ -12,8 +12,6 @@ import { useKeyframeSelection } from "@/hooks/timeline/element/use-keyframe-sele import type { SnapPoint } from "@/lib/timeline/snap-utils"; import { getElementKeyframes } from "@/lib/animation"; import { - getElementClasses, - getTrackHeight, canElementHaveAudio, canElementBeHidden, hasElementEffects, @@ -21,7 +19,11 @@ import { timelineTimeToPixels, timelineTimeToSnappedPixels, } from "@/lib/timeline"; -import { ELEMENT_TYPE_CONFIG } from "@/constants/timeline-constants"; +import { getTrackHeight } from "./track-layout"; +import { + getTimelineElementClassName, + TIMELINE_TRACK_THEME, +} from "./theme"; import { ContextMenu, ContextMenuContent, @@ -464,7 +466,7 @@ function ElementInner({
@@ -710,7 +712,7 @@ function AudioElementContent({ element }: { element: AudioElement }) {
-- cgit v1.3.1