tui: reword placeholder and tooltip to give hints about expected input format

This commit is contained in:
bronsen 2026-02-22 11:03:20 +01:00
parent 5f26fbc18f
commit 2de1b3ce0e

View file

@ -23,11 +23,11 @@ class SearchBar(Static):
def compose(self) -> ComposeResult: def compose(self) -> ComposeResult:
with HorizontalGroup(id="search-bar-widget"): with HorizontalGroup(id="search-bar-widget"):
yield Input( yield Input(
placeholder="Enter Teilchen information: name, description, #tags", placeholder='This is a name. "This is the description" #these #are #tags',
tooltip=( tooltip=(
"This is a free-form field: Enter a name and " "Enter a name followed by a period, then a description "
"description any way you like. You should use #hashtags for any " 'enclosed in double quotes ("). You should use #hashtags for any meta information. '
"meta information." "Hashtags can be placed anywhere."
), ),
id="teilchen-input", id="teilchen-input",
type="text", type="text",