-
+ {isSearching
+ ?
+ :
+ }
-
+ {query && (
+
+ )}
{hasSearched && (
@@ -354,36 +354,38 @@ export default function SearchLocal({ config, setConfig, onClose, onOpenFolder }
-
+ {busy
+ ?
+ :
+ }
setQuery(e.target.value)}
onKeyDown={e => e.key === 'Enter' && !busy && handleSearch()}
placeholder="Search… (* any chars, ? one char)"
- className="w-full pl-9 pr-3 py-2.5 bg-neutral-100 border-0 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:bg-white transition-colors"
+ className="w-full pl-9 pr-9 py-2.5 bg-neutral-100 border-0 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:bg-white transition-colors"
autoFocus
disabled={busy}
/>
+ {query && (
+
+ )}
-
- {dbPhase === 'ready' && !busy && (
+ {/* {dbPhase === 'ready' && !busy && (
- )}
+ )} */}
{hasSearched && (