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 */}