Merge branch 'staging' of https://github.com/mazeincoding/AppCut into staging

This commit is contained in:
Maze Winther 2025-08-05 07:13:13 +02:00
commit 974e3636fe
1 changed files with 3 additions and 2 deletions

View File

@ -6,11 +6,12 @@ import { DEFAULT_CANVAS_SIZE, useProjectStore } from "@/stores/project-store";
export function useAspectRatio() {
const { canvasPresets } = useEditorStore();
const { activeProject } = useProjectStore();
const canvasSize = activeProject?.canvasSize || DEFAULT_CANVAS_SIZE;
const canvasMode = activeProject?.canvasMode || "preset";
const { mediaItems } = useMediaStore();
const { tracks } = useTimelineStore();
const canvasSize = activeProject?.canvasSize || DEFAULT_CANVAS_SIZE;
const canvasMode = activeProject?.canvasMode || "preset";
// Find the current preset based on canvas size
const currentPreset = canvasPresets.find(
(preset) =>