Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Editor: a narrow window keeps the preview at the project's shape, spare height to the timeline

Bowen Xuebb6122634b0c
diff --git a/web/editor.css b/web/editor.css
index ef692e3..4151f2b 100644
--- a/web/editor.css
+++ b/web/editor.css
@@ -227,3 +227,9 @@
.fv-editor .fv-ed-library{grid-area:auto;top:116px;bottom:0;z-index:8}
.fv-editor:has(.fv-ed-library[data-open=true]) .fv-ed-drawer-toggle{position:fixed;top:128px;right:20px;z-index:9}
}
+/* Narrow window: the picture sits right under the header, the row takes the project's own shape (a
+ 16:9 project is about 200 px tall at 400 px wide), and whatever height is left goes to the timeline. */
+@media(max-width:680px){
+ .fv-studio.fv-editor,.fv-studio.fv-editor:has(.fv-ed-gen-failure:not([hidden])){grid-template-rows:auto minmax(0,auto) 40px var(--fv-ed-generation-row,max-content) auto minmax(160px,1fr)}
+ .fv-editor .fv-ed-preview{box-sizing:border-box;align-self:start;aspect-ratio:var(--fv-ed-project-width,16)/var(--fv-ed-project-height,9);max-height:max(116px,calc(100dvh - 470px));padding-top:12px;padding-bottom:8px}
+}
diff --git a/web/editor_frame.js b/web/editor_frame.js
index 614d15a..463a383 100644
--- a/web/editor_frame.js
+++ b/web/editor_frame.js
@@ -74,6 +74,9 @@ export function createPictureGuide(host, frame, {state, t}) {
const show = !preview && !!clip?.source && differentPictureShape(size, record);
const ratio = size.width / size.height, target = record.width / record.height;
frame.style.setProperty('--fv-ed-width', String(size.width)); frame.style.setProperty('--fv-ed-height', String(size.height));
+ // Narrow windows size the preview row by the project's shape, so the timeline does not move as the playhead crosses parts of other shapes.
+ const host = frame.closest('.fv-ed-preview');
+ if (host) { host.style.setProperty('--fv-ed-project-width', String(record.width)); host.style.setProperty('--fv-ed-project-height', String(record.height)); }
frame.dataset.playing = String(!!playing);
updateTools(); shade.hidden = !show || clip?.fit === 'contain';
fill.setAttribute('aria-pressed', String(clip?.fit !== 'contain')); fit.setAttribute('aria-pressed', String(clip?.fit === 'contain'));