Fix event colors: remove inline backgroundColor/borderColor from event data
The previous commit failed to remove inline color props due to CRLF line endings. FullCalendar was still setting inline styles that override CSS. calendarColor is now correctly in extendedProps for the eventDidMount callback. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c473e7e235
commit
dec2c5d526
@ -364,14 +364,13 @@ export default function CalendarPage() {
|
|||||||
start: event.start_datetime,
|
start: event.start_datetime,
|
||||||
end: event.end_datetime || undefined,
|
end: event.end_datetime || undefined,
|
||||||
allDay: event.all_day,
|
allDay: event.all_day,
|
||||||
backgroundColor: event.calendar_color || 'hsl(var(--accent-color))',
|
|
||||||
borderColor: event.calendar_color || 'hsl(var(--accent-color))',
|
|
||||||
editable: permissionMap.get(event.calendar_id) !== 'read_only',
|
editable: permissionMap.get(event.calendar_id) !== 'read_only',
|
||||||
extendedProps: {
|
extendedProps: {
|
||||||
is_virtual: event.is_virtual,
|
is_virtual: event.is_virtual,
|
||||||
is_recurring: event.is_recurring,
|
is_recurring: event.is_recurring,
|
||||||
parent_event_id: event.parent_event_id,
|
parent_event_id: event.parent_event_id,
|
||||||
calendar_id: event.calendar_id,
|
calendar_id: event.calendar_id,
|
||||||
|
calendarColor: event.calendar_color || 'hsl(var(--accent-color))',
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user