-
🎵
-
{activeMediaItem.name}
-
+
+
+
🎵
+
{mediaItem.name}
+
+ {/* Hover resize corners */}
+
{ e.stopPropagation(); handleMouseDown(e, clip.id, 'resize-nw'); }}>
+
{ e.stopPropagation(); handleMouseDown(e, clip.id, 'resize-ne'); }}>
+
{ e.stopPropagation(); handleMouseDown(e, clip.id, 'resize-sw'); }}>
+
{ e.stopPropagation(); handleMouseDown(e, clip.id, 'resize-se'); }}>
);
}
@@ -114,31 +401,100 @@ export function PreviewPanel() {
return null;
};
+ // Canvas size presets
+ const canvasPresets = [
+ { name: "16:9 HD", width: 1920, height: 1080 },
+ { name: "16:9 4K", width: 3840, height: 2160 },
+ { name: "9:16 Mobile", width: 1080, height: 1920 },
+ { name: "1:1 Square", width: 1080, height: 1080 },
+ { name: "4:3 Standard", width: 1440, height: 1080 },
+ ];
+
return (
-
-
1 ? "100%" : "auto",
- height: aspectRatio <= 1 ? "100%" : "auto",
- maxWidth: "100%",
- maxHeight: "100%",
- }}
- >
- {renderContent()}
+
+ {/* Canvas Controls */}
+
+
Canvas:
+
+
+
- {activeMediaItem && (
-
-
- {activeMediaItem.name}
-
-
- {aspectRatio.toFixed(2)} • {aspectRatio > 1 ? "Landscape" : aspectRatio < 1 ? "Portrait" : "Square"}
-
+ {/* Preview Area - Full Width */}
+
+
1 ? "100%" : "auto",
+ height: aspectRatio <= 1 ? "100%" : "auto",
+ maxWidth: "100%",
+ maxHeight: "100%",
+ background: '#000000',
+ border: '1px solid #374151'
+ }}
+
+ >
+
+
+ {/* Render all active clips as layers */}
+ {activeClips.length === 0 ? (
+
+ {tracks.length === 0 ? "Drop media to start editing" : "No clips at current time"}
+
+ ) : (
+ activeClips.map((clipData, index) => renderClipLayer(clipData, index))
+ )}
+
+
- )}
+
+
+ {/* Bottom Info Panel */}
+
+ {/* Layer List */}
+
+
Active Layers ({activeClips.length})
+
+ {activeClips.map((clipData, index) => (
+
+
+ {index + 1}
+
+ {clipData.clip.name}
+ {clipData.track.name}
+
+ ))}
+
+
+
+
+
);
}