From 4bd0282da65db9f118ef5250582ab67079fad538 Mon Sep 17 00:00:00 2001 From: historia Date: Mon, 31 Aug 2026 17:19:27 -0400 Subject: fix: truncate excess spaces on generate audiobooks tui --- app/ui/hub.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/ui/hub.py') 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"}, -- cgit v1.2.3