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 --- apps/web/src/components/editor/panels/properties/tabs/speed-tab.tsx | 2 +- apps/web/src/components/editor/panels/properties/tabs/text-tab.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/web/src/components/editor/panels/properties/tabs') diff --git a/apps/web/src/components/editor/panels/properties/tabs/speed-tab.tsx b/apps/web/src/components/editor/panels/properties/tabs/speed-tab.tsx index da86c626..cb10aac3 100644 --- a/apps/web/src/components/editor/panels/properties/tabs/speed-tab.tsx +++ b/apps/web/src/components/editor/panels/properties/tabs/speed-tab.tsx @@ -11,7 +11,7 @@ import { MAX_RETIME_RATE, clampRetimeRate, canMaintainPitch, -} from "@/constants/retime-constants"; +} from "@/lib/retime/rate"; import type { AudioElement, VideoElement } from "@/lib/timeline"; import { Section, diff --git a/apps/web/src/components/editor/panels/properties/tabs/text-tab.tsx b/apps/web/src/components/editor/panels/properties/tabs/text-tab.tsx index 4c58023b..11412c04 100644 --- a/apps/web/src/components/editor/panels/properties/tabs/text-tab.tsx +++ b/apps/web/src/components/editor/panels/properties/tabs/text-tab.tsx @@ -18,13 +18,13 @@ import { Button } from "@/components/ui/button"; import { uppercase } from "@/utils/string"; import { clamp, formatNumberForDisplay } from "@/utils/math"; import { useEditor } from "@/hooks/use-editor"; -import { DEFAULT_COLOR } from "@/constants/project-constants"; import { CORNER_RADIUS_MAX, + DEFAULT_TEXT_COLOR, CORNER_RADIUS_MIN, MAX_FONT_SIZE, MIN_FONT_SIZE, -} from "@/constants/text-constants"; +} from "@/lib/text/constants"; import { usePropertyDraft } from "../hooks/use-property-draft"; import { useKeyframedColorProperty } from "../hooks/use-keyframed-color-property"; import { useKeyframedNumberProperty } from "../hooks/use-keyframed-number-property"; @@ -343,7 +343,7 @@ function BackgroundSection({ trackId: string; }) { const editor = useEditor(); - const lastSelectedColor = useRef(DEFAULT_COLOR); + const lastSelectedColor = useRef(DEFAULT_TEXT_COLOR); const { localTime, isPlayheadWithinElementRange } = useElementPlayhead({ startTime: element.startTime, duration: element.duration, -- cgit v1.3.1