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