From 21f337cece0eb0bc5add92feb49cb1ef4c3e51bb Mon Sep 17 00:00:00 2001 From: dwindown Date: Thu, 25 Dec 2025 01:48:28 +0700 Subject: [PATCH] Fix card height alignment and remove banner border radius MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: 1. Remove rounded-xl from consulting banner (conflicts with narrow border theme) 2. Make all cards equal height with h-full flex flex-col 3. Simplify consulting card to match product card structure: - Remove Clock/Calendar feature icons (made card too tall) - Use line-clamp-2 for description (same as products) - Add line-clamp-1 to title (same as products) - Use flex-1 justify-end on CardContent (same as products) - Keep decorative element and gradient background 4. Remove unused Clock and Calendar imports Result: All cards in the grid now have equal height and aligned bottoms 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/pages/Products.tsx | 42 ++++++++++++++++-------------------------- 1 file changed, 16 insertions(+), 26 deletions(-) diff --git a/src/pages/Products.tsx b/src/pages/Products.tsx index ece70bd..bae41df 100644 --- a/src/pages/Products.tsx +++ b/src/pages/Products.tsx @@ -9,7 +9,7 @@ import { useCart } from '@/contexts/CartContext'; import { toast } from '@/hooks/use-toast'; import { Skeleton } from '@/components/ui/skeleton'; import { formatIDR } from '@/lib/format'; -import { Video, Clock, Calendar, Package, Check, Search, X } from 'lucide-react'; +import { Video, Package, Check, Search, X } from 'lucide-react'; import { Input } from '@/components/ui/input'; interface Product { @@ -120,7 +120,7 @@ export default function Products() { {/* Consulting Availability Banner */} {!loading && consultingSettings?.is_consulting_enabled && ( -
+
@@ -208,40 +208,30 @@ export default function Products() {
{/* Consulting Card - Only show when enabled */} {consultingSettings?.is_consulting_enabled && ( - + {/* Decorative element */}
- -
- -