mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-11-06 08:15:35 +00:00
fix(settings): searchable dropdowns say they can be searched
The filter field shared by the page's searchable dropdowns (themes, shells) had no placeholder, so it read as a stray caret between the preview and the list.
This commit is contained in:
+4
-1
@@ -6638,7 +6638,10 @@ impl Tty7App {
|
||||
let http_proxy_input = self.build_http_proxy_input(&mut subs, window, cx);
|
||||
// One query box for whichever popover is open — a theme list or a
|
||||
// font list — since only one is ever open at a time.
|
||||
let menu_query = cx.new(|cx| InputState::new(window, cx));
|
||||
// Shared by every searchable dropdown on the page, so the hint is the
|
||||
// generic one; without it the field was a bare caret under the list.
|
||||
let menu_query =
|
||||
cx.new(|cx| InputState::new(window, cx).placeholder(t(L10nKey::SearchTheme)));
|
||||
subs.push(
|
||||
cx.subscribe_in(&menu_query, window, |this, input, ev, _w, cx| {
|
||||
if matches!(ev, InputEvent::Change) {
|
||||
|
||||
Reference in New Issue
Block a user