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.
Show compact resolution values while preserving native option labels
Bowen Xued53b439b4e93
diff --git a/web/studio.css b/web/studio.cssindex 39c9f80..21d79c3 100644--- a/web/studio.css+++ b/web/studio.css@@ -30,6 +30,12 @@.fv-prompt-guide a:hover,.fv-studio .fv-prompt-guide a:hover{background:transparent;color:var(--fv-ink)}.fv-prompt-guide a:focus-visible{outline:2px solid var(--fv-accent);outline-offset:3px}.fv-studio .fv-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fv-studio .fv-field{display:block;min-width:0}.fv-studio .fv-field>span{display:block;font-size:var(--fv-micro);color:var(--fv-muted);margin:0 0 7px}+.fv-studio .fv-resolution-select{position:relative;min-width:0}+.fv-studio .fv-resolution-select select{appearance:none;-webkit-appearance:none;color:transparent;padding-right:36px}+.fv-studio .fv-resolution-select option{color:var(--fv-ink)}+.fv-studio .fv-resolution-value{position:absolute;inset:0 36px 0 12px;display:flex;align-items:center;white-space:nowrap;pointer-events:none}+.fv-studio .fv-resolution-select>.fv-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none}+.fv-studio .fv-resolution-select:has(select:disabled)>:not(select){opacity:.5}.fv-studio .fv-shapes{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}.fv-studio .fv-shapes::before{content:'';position:absolute;inset:0 auto 0 0;width:calc((100% - 24px)/4);border:1px solid var(--fv-accent);border-radius:var(--fv-r-sm);background:var(--fv-selected);transform:translateX(calc(var(--fv-shape-index,0)*(100% + 8px)));transition:transform .38s cubic-bezier(.22,.7,.2,1),opacity .2s;pointer-events:none;z-index:-1}.fv-studio .fv-shapes[data-custom=true]::before{opacity:0}diff --git a/web/studio.js b/web/studio.jsindex 189def8..0a021c6 100644--- a/web/studio.js+++ b/web/studio.js@@ -614,10 +614,16 @@ export function openStudio(node, {extendFrom = null} = {}) {if (pixels === 1 && sizeSelection.value === .98) pixels = .98;for (const n of sizeSelection.options) { const option = el('option', n === .98 ? t('0.98 MP · Recommended', '0.98 MP · 推荐') : `${n.toFixed(2)} MP`); option.value = n; mp.append(option); }mp.value = sizeSelection.value;+ // Keep the native menu's full labels; its closed face only needs the MP value.+ const resolutionSelect = el('div', null, 'fv-resolution-select'), resolutionValue = el('span', '', 'fv-resolution-value');+ resolutionValue.setAttribute('aria-hidden', 'true');+ function syncResolutionLabel() { resolutionValue.textContent = `${Number(mp.value).toFixed(2)} MP`; }+ syncResolutionLabel(); mp.addEventListener('input', syncResolutionLabel);+ resolutionSelect.append(mp, resolutionValue, icon('chevron'));const legacyOption = [...mp.options].find(o => Number(o.value) === 1);mp.disabled = dimensionsLinked;const seconds = el('input'); seconds.type = 'number'; seconds.required = true; seconds.min = '1.625'; seconds.step = 'any'; seconds.value = savedSeconds(node, value(node, 'seconds')); seconds.disabled = linked(node, 'seconds'); seconds.setAttribute('aria-label', t('Duration in seconds', '时长(秒)'));- const fields = el('div', null, 'fv-fields'); fields.append(field(t('Resolution', '清晰度'), mp), field(t('Duration · seconds', '时长 · 秒'), seconds)); canvas.append(fields);+ const fields = el('div', null, 'fv-fields'); fields.append(field(t('Resolution', '清晰度'), resolutionSelect), field(t('Duration · seconds', '时长 · 秒'), seconds)); canvas.append(fields);const canvasNote = el('div', null, 'fv-canvas-note'), dimensions = el('span'), duration = el('span'); canvasNote.append(dimensions, duration); canvas.append(canvasNote);const rangeMount = el('div'); canvas.append(rangeMount);let capabilityView;@@ -1421,6 +1427,7 @@ export function openStudio(node, {extendFrom = null} = {}) {: rest ? t(`${minutes} min ${rest} s`, `${minutes} 分 ${rest} 秒`) : t(`${minutes} min`, `${minutes} 分钟`)} · 24 fps`;}function updateCanvas() {+ syncResolutionLabel();// Render committed dimensions without replacing either input draft.// Duration/estimate refreshes and edits to the other dimension also// come here; only an explicit size choice should fill both fields.