fix: search and status filter work together consistently

- Status filter chips stay visible during text search
- Search results filtered by selected status (search + filter = AND)
- Shows "Нет записей по фильтру" when search has results but filter excludes all
This commit is contained in:
2026-03-24 17:23:16 +03:00
parent 49d710b2e7
commit b48cc040e1
2 changed files with 10 additions and 7 deletions
+1 -3
View File
@@ -39,8 +39,6 @@ export function SearchBar({
onClear();
}
const isSearching = query.trim().length >= 2;
return (
<div className="space-y-2">
<div className="relative">
@@ -58,7 +56,7 @@ export function SearchBar({
</button>
)}
</div>
{!isSearching && (
{(
<div className="flex items-center gap-1.5">
<Filter size={12} className="text-neutral-600 shrink-0" />
<button