From 17f4ff1b41c0859b458df8bf6784b623022c20c0 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Sat, 9 Apr 2022 18:02:36 +0500 Subject: [PATCH] ui touchup --- src/components/EntrySelect.tsx | 10 ++++++---- src/lib/np-tools.ts | 2 -- src/lib/type-predicates.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/EntrySelect.tsx b/src/components/EntrySelect.tsx index 7909c66..416f999 100644 --- a/src/components/EntrySelect.tsx +++ b/src/components/EntrySelect.tsx @@ -19,6 +19,8 @@ function EntrySelect(props: ({ isVerbSelect?: boolean, opts: T.TextOptions, }) { + const placeholder = "entries" in props ? "Select…" : "Search Pashto"; + const minWidth = "9rem"; function makeOption(e: E | T.DictionaryEntry) { if ("entry" in e) { return (props.isVerbSelect ? makeVerbSelectOption : makeSelectOption)(e, props.opts); @@ -40,7 +42,7 @@ function EntrySelect(props: ({ if (!s) return; props.onChange(s); } - return
+ return
(props: ({ onChange={onChange} defaultOptions={[]} loadOptions={options} - placeholder={props.name ? `Select ${props.name}...` : undefined} + placeholder={placeholder} {...zIndexProps} />
; @@ -74,14 +76,14 @@ function EntrySelect(props: ({ if (!s) return; props.onChange(s); } - return
+ return