mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Adjust calendar to show more events and use different colors
Update CalendarGrid to display up to 4 events per day, change the "+X" button color to white and dark gray, and increase the overall height of event items in the calendar grid. 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/oqbeck5
This commit is contained in:
1 parent
4d1d43194a
commit
3a37dfe86c
2 files changed
+4
-4
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 168 KiB |
@@ -103,7 +103,7 @@ function CalendarItem({ item, type, onItemClick }: { item: any, type: 'order' |
|
||||
// Composant pour gérer l'overflow avec modal
|
||||
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 = 3; // Optimisé pour production
|
||||
const MAX_VISIBLE_ITEMS = 4; // Production : 4 éléments visibles
|
||||
const totalItems = dayOrders.length + dayDeliveries.length;
|
||||
|
||||
if (totalItems === 0) return null;
|
||||
@@ -136,7 +136,7 @@ function DayItemsContainer({ dayOrders, dayDeliveries, onItemClick }: { dayOrder
|
||||
<Button
|
||||
variant="outline"
|
||||
size="sm"
|
||||
className="w-full h-5 text-xs bg-orange-200 hover:bg-orange-300 border-orange-400 text-orange-900 font-bold shadow-sm transition-all duration-150 border-2 relative z-50"
|
||||
className="w-full h-5 text-xs bg-white hover:bg-gray-50 border-gray-400 text-gray-700 font-semibold shadow-sm transition-all duration-150 border relative z-50"
|
||||
style={{display: 'block !important', position: 'relative', zIndex: 9999}}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
@@ -409,7 +409,7 @@ export default function CalendarGrid({
|
||||
return (
|
||||
<div
|
||||
key={index}
|
||||
className={`h-32 relative group cursor-pointer transition-all duration-200 ${
|
||||
className={`h-36 relative group cursor-pointer transition-all duration-200 ${
|
||||
isTodayDate
|
||||
? "bg-blue-100 hover:bg-blue-200 border-2 border-blue-600"
|
||||
: isWeekend && isCurrentMonth
|
||||
@@ -440,7 +440,7 @@ export default function CalendarGrid({
|
||||
</div>
|
||||
|
||||
{/* Orders and Deliveries - Production optimisé */}
|
||||
<div className="flex-1 relative" style={{minHeight: '60px', overflow: 'visible'}}>
|
||||
<div className="flex-1 relative" style={{minHeight: '80px', overflow: 'visible'}}>
|
||||
<DayItemsContainer
|
||||
dayOrders={dayOrders}
|
||||
dayDeliveries={dayDeliveries}
|
||||
|
||||
Reference in new issue
Block a user