diff --git a/src/app/components/SearchAssembly64.tsx b/src/app/components/SearchAssembly64.tsx index 375702a..1aea2f2 100644 --- a/src/app/components/SearchAssembly64.tsx +++ b/src/app/components/SearchAssembly64.tsx @@ -236,7 +236,13 @@ export default function SearchAssembly64({ config, setConfig, onClose }: SearchA } }; - const handleSearch = () => { setFilterText(''); doSearch(query, categoryFilter, 0); }; + const handleSearch = () => { + setFilterText(''); + const trimmed = query.trim(); + const q = trimmed && !trimmed.includes(':') ? `name:${trimmed}` : trimmed; + if (q !== query) setQuery(q); + doSearch(q, categoryFilter, 0); + }; const handleLoadMore = () => doSearch(query, categoryFilter, offset, true); const applyPreset = (group: PresetGroup, value: PresetValue) => { @@ -352,25 +358,11 @@ export default function SearchAssembly64({ config, setConfig, onClose }: SearchA Assembly64 - {hasSearched && ( - - )} {/* Search input + presets + categories */}
-
+
- {isSearching ? : 'Search'} + {isSearching + ? + : } + {hasSearched && ( + + )}
{presets.length > 0 && ( diff --git a/src/app/components/SearchCSDbNG.tsx b/src/app/components/SearchCSDbNG.tsx index 56970bf..cb72ef6 100644 --- a/src/app/components/SearchCSDbNG.tsx +++ b/src/app/components/SearchCSDbNG.tsx @@ -234,25 +234,11 @@ export default function SearchCSDbNG({ config, setConfig, onClose }: SearchCSDbN
- {hasSearched && ( - - )}
{/* Search input */}
-
+
doSearch(query)} disabled={isSearching || !query.trim()} - className="px-4 py-2.5 bg-blue-600 text-white rounded-xl text-sm font-medium hover:bg-blue-700 disabled:opacity-40 transition-colors" + className="p-1.5 rounded-lg hover:bg-neutral-100 disabled:opacity-40 transition-colors flex-shrink-0 text-neutral-400 hover:text-blue-600" + title="Search" + aria-label="Search" > - {isSearching ? : 'Search'} + {isSearching + ? + : } + {hasSearched && ( + + )}
{/* Type filter chips */} diff --git a/src/app/components/SearchCommoServe.tsx b/src/app/components/SearchCommoServe.tsx index f20e4ce..13ab1bf 100644 --- a/src/app/components/SearchCommoServe.tsx +++ b/src/app/components/SearchCommoServe.tsx @@ -233,7 +233,13 @@ export default function SearchCommoServe({ config, setConfig, onClose }: SearchC } }; - const handleSearch = () => { setFilterText(''); doSearch(query, 0); }; + const handleSearch = () => { + setFilterText(''); + const trimmed = query.trim(); + const q = trimmed && !trimmed.includes(':') ? `name:${trimmed}` : trimmed; + if (q !== query) setQuery(q); + doSearch(q, 0); + }; const handleLoadMore = () => doSearch(query, offset, true); const applyPreset = (group: PresetGroup, value: PresetValue) => { @@ -355,25 +361,11 @@ export default function SearchCommoServe({ config, setConfig, onClose }: SearchC CommoServe
- {hasSearched && ( - - )}
- {/* Search input + presets + categories */} + {/* Search input + presets */}
-
+
- {isSearching ? : 'Search'} + {isSearching + ? + : } + {hasSearched && ( + + )}
{presets.length > 0 && ( diff --git a/src/app/components/SearchLocal.tsx b/src/app/components/SearchLocal.tsx index bf77857..98ec143 100644 --- a/src/app/components/SearchLocal.tsx +++ b/src/app/components/SearchLocal.tsx @@ -348,31 +348,11 @@ export default function SearchLocal({ config, setConfig, onClose, onOpenFolder } Local
-
- {dbPhase === 'ready' && !busy && ( - - )} - - {hasSearched && ( - - )} -
{/* Search input */}
-
+
- Search + {busy + ? + : } + {dbPhase === 'ready' && !busy && ( + + )} + + {hasSearched && ( + + )}
-
{/* Filter + sort bar — same style as MediaManager */}