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.

Settings: put Test source speeds beside the source list and quiet the token fold-out

Bowen Xue035d11fa0193
diff --git a/web/setup.css b/web/setup.css
index 64a0f18..1ece75a 100644
--- a/web/setup.css
+++ b/web/setup.css
@@ -34,6 +34,12 @@
.fv-setup details[open]>summary{margin-bottom:12px}
.fv-setup details details{margin:12px 0 0;padding:12px 14px;border:1px solid var(--fv-border);border-radius:var(--fv-r-sm);background:var(--fv-bg)}
.fv-setup details details>summary{font-weight:var(--fv-medium);font-size:var(--fv-body)}
+.fv-setup details.fv-token{margin:12px 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--fv-border);border-radius:0;background:transparent}
+.fv-setup details.fv-token>summary{font-size:13px;font-weight:500;color:var(--fv-muted)}
+.fv-setup .fv-source-row{display:flex;align-items:center;gap:10px;margin-top:6px}
+.fv-setup .fv-source-row>select{flex:1;margin:0;height:36px;min-height:36px;padding-block:0}
+.fv-setup .fv-source-row>button{flex:none;height:36px;min-height:36px;padding:0 14px;white-space:nowrap}
+@media (max-width:480px){.fv-setup .fv-source-row{flex-wrap:wrap}.fv-setup .fv-source-row>select{flex-basis:100%}.fv-setup .fv-source-row>button{margin-left:auto}}
/* Fields. */
.fv-setup label{display:block;margin:12px 0 6px;font-size:var(--fv-body);color:var(--fv-muted)}
diff --git a/web/setup.js b/web/setup.js
index e04988d..05d2703 100644
--- a/web/setup.js
+++ b/web/setup.js
@@ -77,11 +77,12 @@ export async function openSetup() {
for (const [id, name] of [['auto',t('Automatic','自动选择')],['official','Hugging Face'],['hf-mirror','HF Mirror'],['modelscope','ModelScope']]) {
const option = node('option',name); option.value = id; source.append(option);
}
- sourceLabel.append(source); downloads.append(sourceLabel);
const probeButton = node('button', t('Test source speeds', '重新测速'));
+ const sourceRow = node('div'); sourceRow.className = 'fv-source-row'; sourceRow.append(source, probeButton);
+ sourceLabel.append(sourceRow); downloads.append(sourceLabel);
const sourceStatus = note(''), speeds = node('div');
- downloads.append(probeButton, sourceStatus, speeds);
- const auth = node('details');
+ downloads.append(sourceStatus, speeds);
+ const auth = node('details'); auth.className = 'fv-token';
auth.append(node('summary', t('Hugging Face token · optional', 'Hugging Face Token · 可选')));
auth.append(note(t('Use your account’s download quota instead of the anonymous limit. Kept for this session only.', '使用账号下载额度,避开匿名限流。仅本次会话有效。')));
const hfTokenLabel = node('label', 'Hugging Face Token');