mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-15 11:19:43 +02:00
Align calendar display to ensure consistency across all environments
Update the maximum number of visible calendar items and adjust styling in CalendarGrid.tsx for consistent display between development and production. 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/WnYSbrG
This commit is contained in:
1 parent
e35fd806b4
commit
55acf5a0ad
3 files changed
+4
-4
No files matched your search
@@ -103,7 +103,7 @@ function CalendarItem({ item, type, onItemClick }: { item: any, type: 'order' |
|
||||
// Composant pour gérer l'overflow avec modal - DEV = PRODUCTION
|
||||
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 = 4; // FORCÉ : 4 éléments en dev ET production
|
||||
const MAX_VISIBLE_ITEMS = 2; // FORCÉ : 2 éléments en dev ET production
|
||||
const totalItems = dayOrders.length + dayDeliveries.length;
|
||||
|
||||
if (totalItems === 0) return null;
|
||||
|
||||
Reference in new issue
Block a user