Make the modes' editable numbers read as values, the box only on hover

A bordered input pulled the eye from "15 -> 10". The number now looks like
plain bold text with a dashed underline; the box shows on hover or while
typing, without spin arrows (they covered the digits). The old value is a
little brighter so the change reads as one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
DemonGatanjieu
2026-10-17 21:38:37 +08:00
co-authored by Claude Opus 5.5
parent 5e23c4a52d
commit 7341ab52d1
4 changed files with 35 additions and 2 deletions
+2
View File
@@ -2293,6 +2293,7 @@ export const i18n = {
ttsFeelYourDefault: "你的默认({name})",
ttsFeelIsDefault: "这就是你的默认,其他档都拿它来比。",
ttsFeelNumbers: "看具体数字(和{base}比:top_k、temperature…)",
ttsFeelEditHint: "点一下就能改,改完马上存进这一档",
ttsListen: "▶ 试听这一档",
ttsListenAgain: "▶ 再听一次",
ttsListenMaking: "生成中…",
@@ -4972,6 +4973,7 @@ export const i18n = {
ttsFeelYourDefault: "your default ({name})",
ttsFeelIsDefault: "This is your default; the others are compared with it.",
ttsFeelNumbers: "The numbers (against {base}: top_k, temperature…)",
ttsFeelEditHint: "Click to change; it is saved into this preset at once",
ttsListen: "▶ Listen to this one",
ttsListenAgain: "▶ Play again",
ttsListenMaking: "Making it…",
+1
View File
@@ -45,6 +45,7 @@ function valueRow(key, before, now, { builtin, onEdit }) {
if (onEdit) {
const input = numberInput(key, now, onEdit);
input.dataset.param = key;
input.title = t('ttsFeelEditHint');
values.append(input);
} else {
values.append(el('strong', '', brief(now)));
+1 -1
View File
@@ -10,7 +10,7 @@
@import url("./styles/09-prompt-drawers.css?v=20261007-theme-2");
@import url("./styles/10-model-sources.css?v=20261007-theme-2");
@import url("./styles/11-audio-studio.css?v=20261017-tts-versions");
@import url("./styles/12-tts-setup.css?v=20261017-feel2");
@import url("./styles/12-tts-setup.css?v=20261017-feel4");
@import url("./styles/13-script-director.css?v=20261017-modes");
@import url("./styles/14-version-manager.css?v=20261007-theme-2");
@import url("./styles/15-shell-rail.css?v=20261016-remote-3");
+31 -1
View File
@@ -175,9 +175,39 @@
font-size: 12px;
}
.anomalous-tts-switch-nums > .is-now {
color: var(--amb-text-soft);
}
/* An editable number reads as the value itself: a dashed underline says it can be changed,
the box appears only on hover or while typing, so "15 → 10" stays one line to read.
No spin arrows (they covered the digits); typing and the arrow keys change it. */
.anomalous-tts-switch-nums .anomalous-tts-number {
width: 56px;
width: 52px;
min-width: 0;
padding: 1px 4px;
border: 1px solid transparent;
border-bottom: 1px dashed var(--amb-border-strong);
border-radius: 4px;
background: transparent;
color: var(--amb-text-main);
font: inherit;
font-weight: 600;
text-align: right;
-moz-appearance: textfield;
}
.anomalous-tts-switch-nums .anomalous-tts-number::-webkit-inner-spin-button,
.anomalous-tts-switch-nums .anomalous-tts-number::-webkit-outer-spin-button {
margin: 0;
-webkit-appearance: none;
}
.anomalous-tts-switch-nums .anomalous-tts-number:hover,
.anomalous-tts-switch-nums .anomalous-tts-number:focus {
border-color: var(--amb-border-strong);
background: var(--amb-bg-input);
outline: none;
}
/* Under the number, so a narrow column (the Script Director's side) keeps it whole. */