From 9ba1f8bd56beed9ee1cac8f2439da1db8807368d Mon Sep 17 00:00:00 2001 From: robin Date: Thu, 18 Dec 2025 09:52:07 +0100 Subject: [PATCH] fix: corect layout spacing and restore filter functionality --- src/components/BottleGrid.tsx | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/BottleGrid.tsx b/src/components/BottleGrid.tsx index 75a3aec..c7186bd 100644 --- a/src/components/BottleGrid.tsx +++ b/src/components/BottleGrid.tsx @@ -36,7 +36,7 @@ function BottleCard({ bottle }: BottleCardProps) { const statusStyle = statusConfig[bottle.status as keyof typeof statusConfig] || statusConfig.sealed; return ( - +
)} -
+
{statusStyle.label}
@@ -70,8 +70,8 @@ function BottleCard({ bottle }: BottleCardProps) {
)}
-

+

{bottle.name || 'Unbekannte Flasche'}

@@ -142,7 +142,7 @@ export default function BottleGrid({ bottles }: BottleGridProps) { return new Date(b.created_at).getTime() - new Date(a.created_at).getTime(); } }); - }, [bottles, searchQuery, selectedCategory, selectedDistillery, sortBy]); + }, [bottles, searchQuery, selectedCategory, selectedDistillery, selectedStatus, sortBy]); if (!bottles || bottles.length === 0) { return ( @@ -194,10 +194,10 @@ export default function BottleGrid({ bottles }: BottleGridProps) {
@@ -205,10 +205,10 @@ export default function BottleGrid({ bottles }: BottleGridProps) { @@ -222,10 +222,10 @@ export default function BottleGrid({ bottles }: BottleGridProps) {
@@ -233,10 +233,10 @@ export default function BottleGrid({ bottles }: BottleGridProps) { @@ -252,10 +252,10 @@ export default function BottleGrid({ bottles }: BottleGridProps) {