From a4f1a02ceaa562febfe3e1fe5a9c0fd8fbf4cd89 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sat, 26 Jul 2025 11:35:52 +0200 Subject: [PATCH] Merge pull request [#444](https://github.com/mazeincoding/AppCut/issues/444) --- apps/web/src/components/editor-header.tsx | 8 +++---- .../editor/properties-panel/index.tsx | 24 ++++++++++--------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/apps/web/src/components/editor-header.tsx b/apps/web/src/components/editor-header.tsx index 96b47800..837bd97a 100644 --- a/apps/web/src/components/editor-header.tsx +++ b/apps/web/src/components/editor-header.tsx @@ -23,7 +23,7 @@ export function EditorHeader() { // TODO: Implement export functionality // NOTE: This is already being worked on console.log("Export project"); - window.open('https://youtube.com/watch?v=dQw4w9WgXcQ', '_blank'); + window.open("https://youtube.com/watch?v=dQw4w9WgXcQ", "_blank"); }; const handleNameClick = () => { @@ -57,11 +57,11 @@ export function EditorHeader() { > -
+
{isEditing ? ( setNewName(e.target.value)} onBlur={handleNameSave} @@ -80,7 +80,7 @@ export function EditorHeader() { onClick={handleNameClick} onKeyDown={(e) => e.key === "Enter" && handleNameClick()} > -
+
{activeProject?.name}
diff --git a/apps/web/src/components/editor/properties-panel/index.tsx b/apps/web/src/components/editor/properties-panel/index.tsx index ec1942f7..3f38bd78 100644 --- a/apps/web/src/components/editor/properties-panel/index.tsx +++ b/apps/web/src/components/editor/properties-panel/index.tsx @@ -1,14 +1,12 @@ "use client"; -import { useProjectStore } from "@/stores/project-store"; +import { FPS_PRESETS } from "@/constants/timeline-constants"; import { useAspectRatio } from "@/hooks/use-aspect-ratio"; +import { useMediaStore } from "@/stores/media-store"; +import { useProjectStore } from "@/stores/project-store"; +import { useTimelineStore } from "@/stores/timeline-store"; import { Label } from "../../ui/label"; import { ScrollArea } from "../../ui/scroll-area"; -import { useTimelineStore } from "@/stores/timeline-store"; -import { useMediaStore } from "@/stores/media-store"; -import { AudioProperties } from "./audio-properties"; -import { MediaProperties } from "./media-properties"; -import { TextProperties } from "./text-properties"; import { Select, SelectContent, @@ -16,7 +14,9 @@ import { SelectTrigger, SelectValue, } from "../../ui/select"; -import { FPS_PRESETS } from "@/constants/timeline-constants"; +import { AudioProperties } from "./audio-properties"; +import { MediaProperties } from "./media-properties"; +import { TextProperties } from "./text-properties"; export function PropertiesPanel() { const { activeProject, updateProjectFps } = useProjectStore(); @@ -83,7 +83,7 @@ export function PropertiesPanel() { ); if (mediaItem?.type === "audio") { - return ; + return ; } return ( @@ -101,9 +101,11 @@ export function PropertiesPanel() { function PropertyItem({ label, value }: { label: string; value: string }) { return ( -
- - +
+ + {value}