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.

Fit running Autopilot header with container queries

Bowen Xue5de67355fec9
diff --git a/web/agent_connect.css b/web/agent_connect.css
index f6f5d75..d5722ec 100644
--- a/web/agent_connect.css
+++ b/web/agent_connect.css
@@ -34,7 +34,25 @@
.fv-autopilot-now-stop[aria-busy=true]::after{display:none}
.fv-autopilot-line{position:absolute;left:0;bottom:-1px;height:2px;border-radius:0 2px 2px 0;background:linear-gradient(90deg,var(--fv-accent),var(--fv-accent-hover));transition:width .6s var(--fv-ease),opacity .4s;pointer-events:none}
.fv-autopilot-line[data-on=false]{opacity:0}
-@media(max-width:1050px){.fv-autopilot-now-go>em{display:none}.fv-autopilot-now-name{max-width:120px}}
-@media(max-width:820px){.fv-studio.fv-autopilot .fv-header:has(.fv-autopilot-now:not([hidden])){height:auto;min-height:98px;grid-template-columns:auto minmax(0,1fr);padding-block:10px}.fv-autopilot .fv-header:has(.fv-autopilot-now:not([hidden]))>.fv-view-switch{grid-column:1/-1;grid-row:2;justify-self:center}.fv-autopilot .fv-header:has(.fv-autopilot-now:not([hidden]))>.fv-header-actions{grid-column:2;grid-row:1}}
+/* Running jobs share the right column; only the title gives up space before fields hide. */
+.fv-studio.fv-autopilot .fv-header:has(.fv-autopilot-now:not([hidden])){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
+.fv-autopilot .fv-header:has(.fv-autopilot-now:not([hidden]))>.fv-header-actions{justify-self:stretch;min-width:0;justify-content:flex-end;container:fv-autopilot-actions / inline-size;gap:4px}
+.fv-header:has(.fv-autopilot-now:not([hidden])) .fv-header-actions>button{flex:none}
+/* Compact spacing only once the column is short of room, so wide headers keep their idle rhythm. */
+@container fv-autopilot-actions (max-width:671px){.fv-header:has(.fv-autopilot-now:not([hidden])) .fv-header-actions>button{padding-inline:5px}}
+.fv-header:has(.fv-autopilot-now:not([hidden])) .fv-autopilot-now{flex:0 1 auto;min-width:0}
+.fv-studio .fv-header:has(.fv-autopilot-now:not([hidden])) .fv-autopilot-now-go{flex:0 1 auto;min-width:0;gap:5px;padding-left:8px}
+.fv-header:has(.fv-autopilot-now:not([hidden])) .fv-autopilot-now-go>:not(.fv-autopilot-now-name){flex:none}
+.fv-header:has(.fv-autopilot-now:not([hidden])) .fv-autopilot-now-name{flex:0 1 auto;min-width:0;white-space:nowrap}
+.fv-autopilot-now-go>em{overflow:hidden}
+/* Four-digit minutes; thresholds intentionally stay the same when feedback becomes an icon. */
+@container fv-autopilot-actions (max-width:561px){:lang(zh) .fv-autopilot-lamp{width:30px;height:30px;padding:0;justify-content:center}:lang(zh) .fv-autopilot-lamp>span{display:none}}
+@container fv-autopilot-actions (max-width:671px){:lang(en) .fv-autopilot-lamp{width:30px;height:30px;padding:0;justify-content:center}:lang(en) .fv-autopilot-lamp>span{display:none}}
+@container fv-autopilot-actions (max-width:370px){:lang(zh) .fv-autopilot-now-go>em{display:none}}
+@container fv-autopilot-actions (max-width:425px){:lang(en) .fv-autopilot-now-go>em{display:none}}
+@container fv-autopilot-actions (max-width:289px){:lang(zh) .fv-autopilot-now-go>span{display:none}}
+@container fv-autopilot-actions (max-width:322px){:lang(en) .fv-autopilot-now-go>span{display:none}}
+@media(max-width:1050px){.fv-autopilot-now-name{max-width:120px}}
+@media(max-width:825px){.fv-studio.fv-autopilot .fv-header:has(.fv-autopilot-now:not([hidden])){height:auto;min-height:98px;grid-template-columns:auto minmax(0,1fr);padding-block:10px}.fv-autopilot .fv-header:has(.fv-autopilot-now:not([hidden]))>.fv-view-switch{grid-column:1/-1;grid-row:2;justify-self:center}.fv-autopilot .fv-header:has(.fv-autopilot-now:not([hidden]))>.fv-header-actions{grid-column:2;grid-row:1}}
@media(max-width:480px){.fv-studio.fv-autopilot .fv-header{grid-template-columns:auto minmax(0,1fr)}.fv-autopilot-now{font-size:12.5px}.fv-autopilot-now-name{display:none}.fv-autopilot .fv-header-actions>.fv-quiet{flex:none;white-space:nowrap}.fv-studio .fv-autopilot-now-go{padding:5px 2px 5px 10px}.fv-studio .fv-autopilot-lamp{width:30px;height:30px;padding:0;justify-content:center}.fv-autopilot-lamp>span{display:none}.fv-agent-connect-body{padding:22px}}
@media(prefers-reduced-motion:reduce){.fv-autopilot-line{transition:none}}
diff --git a/web/autopilot.js b/web/autopilot.js
index a0db975..d64dff0 100644
--- a/web/autopilot.js
+++ b/web/autopilot.js
@@ -23,7 +23,7 @@ let current = null;
export function openAutopilotView(node, {studio = null} = {}) {
if (current?.open) { viewChanged('autopilot', node); return current; }
studio?.querySelectorAll('video,audio').forEach(media => media.pause());
- const dialog = el('dialog', 'fv-studio fv-autopilot'); dialog.setAttribute('aria-label', t('Autopilot', 'AI 全自动'));
+ const dialog = el('dialog', 'fv-studio fv-autopilot'); dialog.lang = cn ? 'zh' : 'en'; dialog.setAttribute('aria-label', t('Autopilot', 'AI 全自动'));
const header = el('header', 'fv-header'), brand = el('div', 'fv-brand'), tools = el('div', 'fv-header-actions');
brand.append(wordmark());
const settings = el('button', 'fv-quiet', t('Settings', '设置')); settings.type = 'button'; settings.onclick = openSetup;