diff options
| author | historia <historiavg@proton.me> | 2026-08-31 17:19:27 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-31 17:19:27 -0400 |
| commit | 4bd0282da65db9f118ef5250582ab67079fad538 (patch) | |
| tree | 61983333df69b9cf9efc91f5320fbb51c66fdc97 /app/ui/hub.py | |
| parent | 3b109185d642319c2c1870815b25ae1c0ad49445 (diff) | |
| download | tts-audiobook-generator-4bd0282da65db9f118ef5250582ab67079fad538.tar.gz | |
fix: truncate excess spaces on generate audiobooks tui
Diffstat (limited to 'app/ui/hub.py')
| -rw-r--r-- | app/ui/hub.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/ui/hub.py b/app/ui/hub.py index abb375a..de5701f 100644 --- a/app/ui/hub.py +++ b/app/ui/hub.py @@ -1362,6 +1362,9 @@ def _audiocpp_fields(stdscr, api_url: Optional[str] = None, {"key": prefix + "model_id", "label": "Model", "kind": "choice", "value": default_model, "choices": [(_label(m), m.get("id")) for m in models], + # The pick menu shows the padded capability table; the form row + # collapses its column padding back to the two-space gutter. + "compact_label": True, "on_change": reset_voice}, # The label tracks the entry's capability: a built-in speaker on # CustomVoice, otherwise the name of a server-side voice to clone. @@ -1513,7 +1516,9 @@ def _qwen_fields(remote_modes: Optional[list] = None, initial_clone = str(initial_wavs[0]) if initial_wavs else "" fields = [ {"key": prefix + "mode", "label": "Model", "kind": "choice", - "value": default_mode, "choices": model_choices}, + "value": default_mode, "choices": model_choices, + # Same as the audio.cpp picker: padded menu table, compact row. + "compact_label": True}, {"key": prefix + "speaker", "label": "Speaker", "kind": "choice", "value": default_speaker, "choices": speakers, "visible": lambda fs: _field_value(fs, prefix + "mode") == "custom"}, |
