diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-07-26 11:35:52 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-07-26 11:35:52 +0200 |
| commit | a4f1a02ceaa562febfe3e1fe5a9c0fd8fbf4cd89 (patch) | |
| tree | 9cb7b7aef5af81ad2994c0dc4994da8d994f956a /apps/web/src/components/editor/properties-panel/index.tsx | |
| parent | c51e82db9b33542b2cf6d3eab6121559e6252818 (diff) | |
| download | opencut-a4f1a02ceaa562febfe3e1fe5a9c0fd8fbf4cd89.tar.gz | |
Merge pull request [#444](https://github.com/mazeincoding/AppCut/issues/444)
Diffstat (limited to 'apps/web/src/components/editor/properties-panel/index.tsx')
| -rw-r--r-- | apps/web/src/components/editor/properties-panel/index.tsx | 24 |
1 files changed, 13 insertions, 11 deletions
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 <AudioProperties element={element} />; + return <AudioProperties key={elementId} element={element} />; } return ( @@ -101,9 +101,11 @@ export function PropertiesPanel() { function PropertyItem({ label, value }: { label: string; value: string }) { return ( - <div className="flex flex-col gap-1"> - <Label className="text-xs text-muted-foreground">{label}</Label> - <span className="text-xs break-words" title={value}> + <div className="grid justify-between grid-cols-6"> + <Label className="text-xs text-muted-foreground col-span-2"> + {label} + </Label> + <span className="text-xs text-right col-span-4 truncate" title={value}> {value} </span> </div> |
