Skip to content

Commit fa2cb45

Browse files
Move 'Filters are being saved automatically' message to bottom left
- Relocated message from top center to bottom left next to script count - Positioned alongside 'Clear all filters' button for better layout - Maintains green checkmark icon and styling consistency
1 parent 02680ae commit fa2cb45

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

src/app/_components/FilterBar.tsx

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,6 @@ export function FilterBar({
9393
</div>
9494
)}
9595

96-
{/* Filter Persistence Status */}
97-
{!isLoadingFilters && saveFiltersEnabled && (
98-
<div className="mb-4 flex items-center justify-center py-1">
99-
<div className="flex items-center space-x-2 text-xs text-green-600">
100-
<svg className="h-3 w-3" fill="currentColor" viewBox="0 0 20 20">
101-
<path fillRule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clipRule="evenodd" />
102-
</svg>
103-
<span>Filters are being saved automatically</span>
104-
</div>
105-
</div>
106-
)}
10796

10897
{/* Filter Header */}
10998
{!isLoadingFilters && (
@@ -391,18 +380,30 @@ export function FilterBar({
391380

392381
{/* Filter Summary and Clear All */}
393382
<div className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-2">
394-
<div className="text-sm text-muted-foreground">
395-
{filteredCount === totalScripts ? (
396-
<span>Showing all {totalScripts} scripts</span>
397-
) : (
398-
<span>
399-
{filteredCount} of {totalScripts} scripts{" "}
400-
{hasActiveFilters && (
401-
<span className="font-medium text-blue-600">
402-
(filtered)
403-
</span>
404-
)}
405-
</span>
383+
<div className="flex items-center gap-4">
384+
<div className="text-sm text-muted-foreground">
385+
{filteredCount === totalScripts ? (
386+
<span>Showing all {totalScripts} scripts</span>
387+
) : (
388+
<span>
389+
{filteredCount} of {totalScripts} scripts{" "}
390+
{hasActiveFilters && (
391+
<span className="font-medium text-blue-600">
392+
(filtered)
393+
</span>
394+
)}
395+
</span>
396+
)}
397+
</div>
398+
399+
{/* Filter Persistence Status */}
400+
{!isLoadingFilters && saveFiltersEnabled && (
401+
<div className="flex items-center space-x-1 text-xs text-green-600">
402+
<svg className="h-3 w-3" fill="currentColor" viewBox="0 0 20 20">
403+
<path fillRule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clipRule="evenodd" />
404+
</svg>
405+
<span>Filters are being saved automatically</span>
406+
</div>
406407
)}
407408
</div>
408409

0 commit comments

Comments
 (0)