Month view loses course colors and day cells grow very tall #61
Labels
No labels
bug
chore
data
feature
frontend
good first issue
intermediate
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/cal#61
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's wrong
In Month view every event is the same default blue instead of its course color, and nothing limits how many events a day shows, so a busy day cell grows to roughly 1,800px tall.
How to reproduce
Expected
Month view uses the same colors as Week view and the sidebar dots. Each day shows a few events plus a "+N more" link.
Where to look
web/src/app/components/Calendar.tsx:<FullCalendar>has nodayMaxEvents; add one (for exampledayMaxEvents={3}ortrue).web/src/app/components/FullCalendarCard.tsx: the customeventContent. In month view, timed events use FullCalendar's "dot" display; custom content drops the colored dot, and FullCalendar sets no inline color on dot events.web/src/styles/calendar.css:.fc-event { background-color: var(--fc-event-bg-color, ...) }then paints them with FullCalendar's default blue.web/src/app/page.tsx: where each course'sbackgroundColorandborderColorare set.eventDisplay: "block"fordayGridMonththrough theviewsprop, or color the card fromevent.backgroundColorin FullCalendarCard.Done when