fix: hide quality selector when format is mp3

Quality/resolution options don't apply to audio-only output.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-11 15:05:58 +02:00
co-authored by Claude Sonnet 5
parent 1f51ec7a2b
commit f9f2934154
2 changed files with 9 additions and 7 deletions
+2
View File
@@ -225,12 +225,14 @@ export function SubmitForm({ examplePlaceholder }: { examplePlaceholder?: string
</select> </select>
</label> </label>
{format !== 'mp3' && (
<label className="flex items-center gap-2"> <label className="flex items-center gap-2">
<span>{t('quality')}</span> <span>{t('quality')}</span>
<select value={quality} onChange={(e) => setQuality(e.target.value)} className={selectClass}> <select value={quality} onChange={(e) => setQuality(e.target.value)} className={selectClass}>
{capabilities.availableQualities.map((q) => <option key={q}>{q}</option>)} {capabilities.availableQualities.map((q) => <option key={q}>{q}</option>)}
</select> </select>
</label> </label>
)}
</> </>
)} )}
+1 -1
View File
File diff suppressed because one or more lines are too long