From 9f5827b5cba302ce5447cf364319fa79678e8c5b Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Mon, 18 Aug 2025 13:37:23 +0000 Subject: [PATCH] Show more daily orders and deliveries on the calendar Update CalendarGrid component to display up to 4 items per day, resolving an issue where only 2 items were visible when multiple orders and deliveries occurred on the same day. Replit-Commit-Author: Agent Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/tI82cIY --- client/src/components/CalendarGrid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/CalendarGrid.tsx b/client/src/components/CalendarGrid.tsx index 9333973..48af0df 100644 --- a/client/src/components/CalendarGrid.tsx +++ b/client/src/components/CalendarGrid.tsx @@ -97,7 +97,7 @@ function CalendarItem({ item, type, onItemClick }: { item: any, type: 'order' | // Composant pour gérer l'overflow avec popover function DayItemsContainer({ dayOrders, dayDeliveries, onItemClick }: { dayOrders: any[], dayDeliveries: any[], onItemClick: (item: any, type: 'order' | 'delivery') => void }) { const [isOpen, setIsOpen] = useState(false); - const MAX_VISIBLE_ITEMS = 2; + const MAX_VISIBLE_ITEMS = 4; const totalItems = dayOrders.length + dayDeliveries.length; if (totalItems === 0) return null;