From 1b9732327908903117ba1c694472b730bbe17bd0 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Mon, 15 Sep 2025 09:15:10 +0200 Subject: [PATCH] refactor: improve layout and structure of KanbanFilters - Updated the layout of the expanded filters section to use a grid system for better responsiveness. - Enhanced the priority filter display with improved button styling and spacing. - Maintained tag filter functionality while ensuring consistent styling and layout adjustments. --- components/kanban/KanbanFilters.tsx | 85 +++++++++++++++-------------- 1 file changed, 44 insertions(+), 41 deletions(-) diff --git a/components/kanban/KanbanFilters.tsx b/components/kanban/KanbanFilters.tsx index 157b658..f361ed1 100644 --- a/components/kanban/KanbanFilters.tsx +++ b/components/kanban/KanbanFilters.tsx @@ -277,60 +277,63 @@ export function KanbanFilters({ filters, onFiltersChange }: KanbanFiltersProps) {/* Filtres étendus */} {isExpanded && ( -
- {/* Filtres par priorité */} -
- -
- {priorityOptions.map((priority) => ( - - ))} -
-
- - {/* Filtres par tags */} - {availableTags.length > 0 && ( -
+
+ {/* Grille responsive pour les filtres */} +
+ {/* Filtres par priorité */} +
-
- {sortedTags.map((tag) => ( +
+ {priorityOptions.map((priority) => ( ))}
- )} + + {/* Filtres par tags */} + {availableTags.length > 0 && ( +
+ +
+ {sortedTags.map((tag) => ( + + ))} +
+
+ )} +
{/* Résumé des filtres actifs */} {activeFiltersCount > 0 && (