Vision Refactor

This commit is contained in:
alma 2026-01-14 12:07:03 +01:00
parent e2f5f34d51
commit 1a21f47087

View File

@ -378,23 +378,13 @@ export default function VisionPage() {
</div>
<div className="flex flex-col lg:flex-row gap-6">
{/* Colonne calendrier (étroite, garde le thème par défaut qui fonctionnait) */}
<div className="w-full lg:w-80 lg:flex-shrink-0">
<CalendarComponent
mode="single"
selected={selectedDate}
onSelect={setSelectedDate}
className="rounded-md border"
classNames={{
caption_label: "text-gray-900 font-semibold",
nav_button: "text-gray-700 hover:text-gray-900 bg-white",
day: "h-9 w-9 p-0 font-normal border border-gray-200 bg-white text-gray-900 hover:bg-blue-50",
// Jour sélectionné (ex: clic ou jour avec réunion si sélectionné)
day_selected: "h-9 w-9 p-0 font-normal border border-blue-600 bg-blue-600 text-white hover:bg-blue-700",
// Jour d'aujourd'hui sans réunion: fond bleu clair + texte bleu lisible
day_today: "h-9 w-9 p-0 font-normal border border-blue-500 bg-blue-100 text-blue-700",
day_outside: "h-9 w-9 p-0 font-normal border border-gray-200 bg-white text-gray-400",
day_disabled: "h-9 w-9 p-0 font-normal border border-gray-200 bg-white text-gray-300 opacity-50",
}}
modifiers={{
hasMeeting: (date) => {
if (!date) return false;
@ -402,7 +392,6 @@ export default function VisionPage() {
},
}}
modifiersClassNames={{
// Jour avec réunion: on force fond bleu et texte blanc
hasMeeting: "bg-blue-600 text-white font-semibold hover:bg-blue-700",
}}
/>