From e8b0057cc44c90af24f52e44ada60493e6ef6311 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Thu, 10 Jul 2025 20:53:58 +0200 Subject: feat: initial fonts support --- apps/web/src/components/editor/properties-panel.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'apps/web/src/components/editor/properties-panel.tsx') diff --git a/apps/web/src/components/editor/properties-panel.tsx b/apps/web/src/components/editor/properties-panel.tsx index e9b651bc..a0532ab3 100644 --- a/apps/web/src/components/editor/properties-panel.tsx +++ b/apps/web/src/components/editor/properties-panel.tsx @@ -15,6 +15,7 @@ import { SelectValue, SelectItem, } from "../ui/select"; +import { FONT_OPTIONS, type FontFamily } from "@/constants/font-constants"; export function PropertiesPanel() { const { activeProject } = useProjectStore(); @@ -49,14 +50,21 @@ export function PropertiesPanel() { />
- + updateTextElement(trackId, element.id, { fontFamily: value }) + } + > - Arial - Helvetica - Times New Roman + {FONT_OPTIONS.map((font) => ( + + {font.label} + + ))}
-- cgit v1.3.1