Refactor FeedFilters component to simplify custom filter display
- Replaced the Collapsible component with a conditional div for displaying custom filters, enhancing clarity and reducing complexity in the UI. - Removed unused imports related to the Collapsible component to clean up the code. These changes improve the maintainability and readability of the FeedFilters component.
This commit is contained in:
parent
e90c4992da
commit
7025ea81c6
1 changed files with 3 additions and 5 deletions
|
|
@ -31,8 +31,7 @@
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Collapsible v-model:open="showCustom">
|
<div v-if="showCustom" class="space-y-3">
|
||||||
<CollapsibleContent class="space-y-3">
|
|
||||||
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3">
|
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3">
|
||||||
<div
|
<div
|
||||||
v-for="filter in availableFilters"
|
v-for="filter in availableFilters"
|
||||||
|
|
@ -86,8 +85,7 @@
|
||||||
Apply Custom Filters ({{ selectedFilters.length }})
|
Apply Custom Filters ({{ selectedFilters.length }})
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</CollapsibleContent>
|
</div>
|
||||||
</Collapsible>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Active Filters Display -->
|
<!-- Active Filters Display -->
|
||||||
|
|
@ -121,7 +119,7 @@ import { Button } from '@/components/ui/button'
|
||||||
import { Badge } from '@/components/ui/badge'
|
import { Badge } from '@/components/ui/badge'
|
||||||
import { Label } from '@/components/ui/label'
|
import { Label } from '@/components/ui/label'
|
||||||
import { Checkbox } from '@/components/ui/checkbox'
|
import { Checkbox } from '@/components/ui/checkbox'
|
||||||
import { Collapsible, CollapsibleContent } from '@/components/ui/collapsible'
|
// import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible'
|
||||||
import { ChevronDown, X } from 'lucide-vue-next'
|
import { ChevronDown, X } from 'lucide-vue-next'
|
||||||
import { FILTER_PRESETS, getAllContentFilters } from '../config/content-filters'
|
import { FILTER_PRESETS, getAllContentFilters } from '../config/content-filters'
|
||||||
import type { ContentFilter } from '../services/FeedService'
|
import type { ContentFilter } from '../services/FeedService'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue