feat: modal-based video source picker with project clip grid

The native select was too cramped for a project with many clips. Replace
it with a wide modal (Auto / Upload file / clip grid with thumbnails).
Clip options now cover any scene in the timeline, not just earlier ones,
and uploads wire through a hidden input. Also fix the Choose-Video modal
rendering blank under Clips/Uploads tabs: duplicate asset paths crashed
Svelte's keyed each mid-render — dedupe by path and clamp the active tab
when a tile's kind changes.
This commit is contained in:
Benjiyaya
2026-08-29 21:43:05 +08:00
parent 91cbaf1a44
commit 1ce2c2a535
6 changed files with 440 additions and 34 deletions
@@ -5,7 +5,7 @@
interface Props {
open?: boolean;
title?: string;
size?: 'md' | 'lg';
size?: 'md' | 'lg' | 'xl';
dismissible?: boolean;
onclose?: () => void;
footer?: Snippet;
@@ -163,6 +163,9 @@
.modal-panel.size-lg {
width: min(920px, 100%);
}
.modal-panel.size-xl {
width: min(1180px, 100%);
}
.modal-header {
display: flex;
align-items: center;