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:
@@ -225,12 +225,14 @@ export function SubmitForm({ examplePlaceholder }: { examplePlaceholder?: string
|
|||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label className="flex items-center gap-2">
|
{format !== 'mp3' && (
|
||||||
<span>{t('quality')}</span>
|
<label className="flex items-center gap-2">
|
||||||
<select value={quality} onChange={(e) => setQuality(e.target.value)} className={selectClass}>
|
<span>{t('quality')}</span>
|
||||||
{capabilities.availableQualities.map((q) => <option key={q}>{q}</option>)}
|
<select value={quality} onChange={(e) => setQuality(e.target.value)} className={selectClass}>
|
||||||
</select>
|
{capabilities.availableQualities.map((q) => <option key={q}>{q}</option>)}
|
||||||
</label>
|
</select>
|
||||||
|
</label>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user