ui(tts): Ton-Presets — Schnell (piper), Hohe Qualität (chatterbox), Cloud (openrouter) zurück
- Vorlesen-Presets wieder nach Tempo/Qualität benannt: 📱 Im Gerät · ⚡ Schnell · ✨ Hohe Qualität · ☁ Cloud. Cloud (OpenRouter) wieder als sichtbarer Knopf. - syncPresetUI: exakte Markierung (openrouter hat eigenen Knopf, kein Sonderfall mehr). - Doku §5.1.2 angepasst. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
d39fc40e94
commit
7d30fe9e7c
3 changed files with 15 additions and 9 deletions
|
|
@ -164,8 +164,7 @@ function applyPlaybackChoice(serverProvider) {
|
|||
function syncPresetUI() {
|
||||
const val = ttsSel ? ttsSel.value : "";
|
||||
document.querySelectorAll(".tts-preset").forEach((btn) => {
|
||||
const active = btn.dataset.tts === val ||
|
||||
(val === "openrouter" && btn.dataset.tts === "chatterbox"); // Cloud -> "Beste Qualität"
|
||||
const active = btn.dataset.tts === val;
|
||||
btn.classList.toggle("ring-2", active);
|
||||
btn.classList.toggle("ring-blue-500", active);
|
||||
btn.classList.toggle("border-blue-500", active);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue