mirror of
https://github.com/vibegif/vibegif.lol.git
synced 2026-04-07 02:12:12 +00:00
Refactor: Remove sel-size and syncSizeByModel
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export const ELEMENT_IDS = [
|
||||
'setup-screen', 'main-screen', 'setup-key', 'setup-save',
|
||||
'btn-settings', 'modal-settings', 'modal-key', 'modal-save', 'btn-close-modal',
|
||||
'sel-model', 'inp-prompt', 'inp-frames', 'inp-fps', 'sel-size', 'sel-ratio',
|
||||
'sel-model', 'inp-prompt', 'inp-frames', 'inp-fps', 'sel-ratio',
|
||||
'btn-generate', 'progress-area', 'progress-bar', 'progress-text', 'frames-preview',
|
||||
'result-area', 'result-gif', 'btn-download'
|
||||
];
|
||||
@@ -73,11 +73,3 @@ export function setGenerating(el, active) {
|
||||
el.btnGenerate.style.opacity = active ? '0.5' : '1';
|
||||
el.btnGenerate.style.cursor = active ? 'not-allowed' : 'pointer';
|
||||
}
|
||||
|
||||
export function syncSizeByModel(el) {
|
||||
if (!el.selModel || !el.selSize) return;
|
||||
const isGemini = el.selModel.value.startsWith('google/');
|
||||
const opt05 = el.selSize.querySelector('option[value="0.5K"]');
|
||||
if (opt05) opt05.disabled = !isGemini;
|
||||
if (!isGemini && el.selSize.value === '0.5K') el.selSize.value = '1K';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user