AI media harness for planning, generating, and editing locally
TypeScript
Stack folders beside video cards
Bittiac3de781e635
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.mdindex 3ebf2dc..81bf24f 100644--- a/RELEASE_NOTES.md+++ b/RELEASE_NOTES.md@@ -22,6 +22,7 @@ Changes since 0.3.2.## Fixes and improvements- Improved video playback, thumbnails and Back navigation.+- Video folders stack vertically beside video cards in grid view.- Clicking empty space in the video or music library clears the selection.- Image edits preserve their sources and settings. Generator lists and inspector controls are more compact and consistently ordered.- Corrected First/Last Frame prompts, cached VAE checks across restarts and fixed AppImage launcher permissions.diff --git a/src/components/workspace/VideoLibraryView.tsx b/src/components/workspace/VideoLibraryView.tsxindex 4bc3818..e412a88 100644--- a/src/components/workspace/VideoLibraryView.tsx+++ b/src/components/workspace/VideoLibraryView.tsx@@ -36,6 +36,7 @@ export function VideoLibraryView(props: ComponentProps<typeof GeneratorView> & {const pane = usePaneSize("video.inspector", 340, { min: 280, max: 560 });const menu = useContextMenu();const currentFolder = folders.find((folder) => folder.id === folderId), currentFolderId = currentFolder?.id ?? null;+ const visibleFolders = folders.filter((folder) => (folder.parentId ?? null) === currentFolderId);const visible = videos.filter((video) => (video.folderId ?? null) === currentFolderId);const selected = selectedId === null ? undefined : visible.find((video) => video.id === selectedId) ?? visible[0];const selectedSettings = videoSettings(selected, config);@@ -123,9 +124,9 @@ export function VideoLibraryView(props: ComponentProps<typeof GeneratorView> & {<button className="primary-button" disabled={!folderName.trim()}>Create folder</button><button type="button" className="secondary-button" onClick={() => setCreatingFolder(false)}>Cancel</button></form>}<div className={`music-songs music-songs--${view}`} role="list" aria-label="Video contents">- {folders.filter((folder) => (folder.parentId ?? null) === currentFolderId).map((folder) => <div className="music-song music-folder video-folder" role="listitem" key={folder.id} {...dropProps(folder.id)} onContextMenu={(event) => menu.open(event, [...newItems(), { separator: true }, { label: "Remove folder", icon: <Delete16 />, onSelect: () => update((current) => ({ ...current, videoFolders: current.videoFolders?.filter((item) => item.id !== folder.id).map((item) => item.parentId === folder.id ? { ...item, parentId: folder.parentId } : item), videos: current.videos!.map((video) => video.folderId === folder.id ? { ...video, folderId: folder.parentId } : video) })) }])}>+ {visibleFolders.length > 0 && <div className="video-folders" role="presentation">{visibleFolders.map((folder) => <div className="music-song music-folder video-folder" role="listitem" key={folder.id} {...dropProps(folder.id)} onContextMenu={(event) => menu.open(event, [...newItems(), { separator: true }, { label: "Remove folder", icon: <Delete16 />, onSelect: () => update((current) => ({ ...current, videoFolders: current.videoFolders?.filter((item) => item.id !== folder.id).map((item) => item.parentId === folder.id ? { ...item, parentId: folder.parentId } : item), videos: current.videos!.map((video) => video.folderId === folder.id ? { ...video, folderId: folder.parentId } : video) })) }])}><button type="button" className="music-song__select" aria-label={`Open ${folder.name}`} onClick={() => browse(folder.id)}><span className="music-song__art"><FolderOpen48 /></span><span className="music-song__info"><strong title={folder.name}>{folder.name}</strong><span>{folderContents(folder.id)}</span></span></button>- </div>)}+ </div>)}</div>}{visible.map((video) => {const scenes = videoScenes(video, config), playlist = videoPlaylist(video, config), playable = playlist.length, first = playlist[0];const [width, height] = videoSettings(video, config).aspectRatio.split(":").map(Number);@@ -146,7 +147,7 @@ export function VideoLibraryView(props: ComponentProps<typeof GeneratorView> & {</div>;})}</div>- {!visible.length && !folders.some((folder) => (folder.parentId ?? null) === currentFolderId) && <div className="music-empty"><Film32 /><h3>Create a video</h3><p>Organize scenes and shots into a video, with shared prompts and references.</p><button type="button" className="primary-button" onClick={add}>New video</button></div>}+ {!visible.length && !visibleFolders.length && <div className="music-empty"><Film32 /><h3>Create a video</h3><p>Organize scenes and shots into a video, with shared prompts and references.</p><button type="button" className="primary-button" onClick={add}>New video</button></div>}</div>{playing && playback?.popout && <VideoPlayback key={playing.id} video={playing} config={config} folderPath={folderPath} popout onClose={() => setPlayback(undefined)} />}</div>diff --git a/src/styles/video-library.css b/src/styles/video-library.cssindex 411a99a..495fa38 100644--- a/src/styles/video-library.css+++ b/src/styles/video-library.css@@ -9,9 +9,10 @@.video-scenes__title { min-width: 0; max-width: 200px; margin-inline: var(--space-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.video-reference-help { color: var(--text-secondary); font-size: var(--text-xs); }.video-reference-range { display: block; margin-block: var(--space-1); }-.video-library-stage .music-songs--grid { grid-template-columns: repeat(auto-fill, minmax(0, min(300px, 100%))); gap: var(--space-2); }+.video-library-stage .music-songs--grid { grid-template-columns: repeat(auto-fill, minmax(0, min(300px, 100%))); gap: var(--space-2); align-items: start; }+.video-folders { display: contents; }+.music-songs--grid:has(> .video-card) > .video-folders { display: flex; flex-direction: column; gap: var(--space-2); }.video-card, .video-folder { overflow: hidden; container-type: inline-size; border-radius: var(--radius-sm); }-.music-songs--grid > .video-folder { align-self: start; }.video-card > .music-song__select, .video-folder > .music-song__select { height: auto; padding: 6px; }.video-card .music-song__art { aspect-ratio: var(--video-card-aspect, 16 / 9); overflow: hidden; }.video-card .music-song__art img { display: block; width: 100%; height: 100%; object-fit: contain; }