mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-22 14:38:19 +02:00
3 files changed
+3343
-33
No files matched your search
@@ -37,4 +37,3 @@ args = "npm run dev"
|
|||||||
waitForPort = 5000
|
waitForPort = 5000
|
||||||
|
|
||||||
[agent]
|
[agent]
|
||||||
integrations = ["javascript_database==1.0.0", "javascript_object_storage==1.0.0", "javascript_log_in_with_replit==1.0.0"]
|
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -536,39 +536,42 @@ export default function CalendarGrid({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Publicities avec design épuré */}
|
{/* Publicities et Quick Create Button ensemble */}
|
||||||
{dayPublicities.length > 0 && (
|
|
||||||
<div className="absolute top-2 right-2 flex flex-col items-end gap-1">
|
|
||||||
{dayPublicities.slice(0, 2).map((pub, idx) => (
|
|
||||||
<div
|
|
||||||
key={`${pub.id}-${idx}`}
|
|
||||||
className="bg-purple-300 text-purple-800 text-xs px-2 py-1 font-bold shadow-md cursor-help transform hover:scale-105 transition-transform duration-150 border border-purple-400"
|
|
||||||
title={`Pub ${pub.pubNumber}: ${pub.designation}${pub.participations ? ` - Magasins: ${pub.participations.map((pg: any) => pg.group?.name).join(', ')}` : ''}`}
|
|
||||||
>
|
|
||||||
{pub.pubNumber}
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
{dayPublicities.length > 2 && (
|
|
||||||
<div className="bg-purple-400 text-purple-900 text-xs px-2 py-1 font-bold shadow-md cursor-help transform hover:scale-105 transition-transform duration-150 border border-purple-500">
|
|
||||||
+{dayPublicities.length - 2}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Quick Create Button épuré */}
|
|
||||||
{isCurrentMonth && (
|
{isCurrentMonth && (
|
||||||
<div className={`absolute ${dayPublicities.length === 0 ? 'top-2 right-2' : 'bottom-2 right-2'} opacity-0 group-hover:opacity-100 transition-all duration-200`}>
|
<div className="absolute top-2 right-2 flex flex-col items-end gap-1">
|
||||||
<Button
|
{/* Publicities avec design épuré */}
|
||||||
size="sm"
|
{dayPublicities.length > 0 && (
|
||||||
className="w-6 h-6 bg-orange-300 text-orange-800 p-0 hover:bg-orange-400 shadow-md transform hover:scale-110 transition-all duration-150 border border-orange-500"
|
<>
|
||||||
onClick={(e) => {
|
{dayPublicities.slice(0, 2).map((pub, idx) => (
|
||||||
e.stopPropagation();
|
<div
|
||||||
onDateClick(date);
|
key={`${pub.id}-${idx}`}
|
||||||
}}
|
className="bg-purple-300 text-purple-800 text-xs px-2 py-1 font-bold shadow-md cursor-help transform hover:scale-105 transition-transform duration-150 border border-purple-400"
|
||||||
>
|
title={`Pub ${pub.pubNumber}: ${pub.designation}${pub.participations ? ` - Magasins: ${pub.participations.map((pg: any) => pg.group?.name).join(', ')}` : ''}`}
|
||||||
<Plus className="w-3 h-3" />
|
>
|
||||||
</Button>
|
{pub.pubNumber}
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
{dayPublicities.length > 2 && (
|
||||||
|
<div className="bg-purple-400 text-purple-900 text-xs px-2 py-1 font-bold shadow-md cursor-help transform hover:scale-105 transition-transform duration-150 border border-purple-500">
|
||||||
|
+{dayPublicities.length - 2}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* Quick Create Button à côté des publicités */}
|
||||||
|
<div className="opacity-0 group-hover:opacity-100 transition-all duration-200">
|
||||||
|
<Button
|
||||||
|
size="sm"
|
||||||
|
className="w-6 h-6 bg-orange-300 text-orange-800 p-0 hover:bg-orange-400 shadow-md transform hover:scale-110 transition-all duration-150 border border-orange-500"
|
||||||
|
onClick={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
onDateClick(date);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Plus className="w-3 h-3" />
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user