From 76ee723c37578e79c030f63b1f0ee1f00b3c45dc Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sat, 26 Jul 2025 11:53:34 +0200 Subject: [PATCH] refactor: use reusable PropertyItem component instead of local --- .../editor/properties-panel/index.tsx | 48 +++++++++++-------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/apps/web/src/components/editor/properties-panel/index.tsx b/apps/web/src/components/editor/properties-panel/index.tsx index 3f38bd78..720c4a26 100644 --- a/apps/web/src/components/editor/properties-panel/index.tsx +++ b/apps/web/src/components/editor/properties-panel/index.tsx @@ -16,6 +16,11 @@ import { } from "../../ui/select"; import { AudioProperties } from "./audio-properties"; import { MediaProperties } from "./media-properties"; +import { + PropertyItem, + PropertyItemLabel, + PropertyItemValue, +} from "./property-item"; import { TextProperties } from "./text-properties"; export function PropertiesPanel() { @@ -35,12 +40,30 @@ export function PropertiesPanel() {
{/* Media Properties */}
- - - + + + Name: + + + {activeProject?.name || ""} + + + + + Aspect ratio: + + + {getDisplayName()} + + + + + Resolution: + + + {`${canvasSize.width} × ${canvasSize.height}`} + +