Compare commits

..

3 Commits

Author SHA1 Message Date
d6f5975fb9 Add dot indicator to timed month events in custom eventContent
eventContent replaces FC's default inner markup including the dot span.
Render a manual fc-daygrid-event-dot with border-color: var(--event-color).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 02:35:40 +08:00
40d0bb336c Merge fix: weekend tint cutoff and missing event dots 2026-03-13 02:34:34 +08:00
2a850ad8fd Fix calendar weekend tint cutoff and missing month-view event dots
- index.css: add explicit .fc-col-header-cell.fc-day-sat/sun rules with
  !important to override the generic header background, and cover
  .fc-timegrid-col weekend cells so the tint reaches all views
- CalendarPage.tsx: render .fc-daygrid-event-dot manually in the timed
  month-view eventContent branch — FC's eventContent hook replaces the
  entire default inner content including the dot span, so the CSS target
  had nothing to paint

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 02:33:43 +08:00
2 changed files with 16 additions and 0 deletions

View File

@ -531,6 +531,10 @@ export default function CalendarPage() {
// Timed events in month: dot + title + time right-aligned
return (
<div className="flex items-center gap-1.5 truncate w-full">
<span
className="fc-daygrid-event-dot"
style={{ borderColor: 'var(--event-color)' }}
/>
<span className="text-[11px] font-medium truncate">{arg.event.title}</span>
{repeatIcon}
<span className="umbra-event-time text-[10px] opacity-50 shrink-0 ml-auto tabular-nums">{arg.timeText}</span>

View File

@ -170,6 +170,18 @@
background-color: hsl(0 0% 6%);
}
/* Weekend tint: header cells (higher specificity to override .fc-col-header-cell) */
.fc .fc-col-header-cell.fc-day-sat,
.fc .fc-col-header-cell.fc-day-sun {
background-color: hsl(0 0% 6%) !important;
}
/* Weekend tint: timegrid column cells */
.fc .fc-timegrid-col.fc-day-sat,
.fc .fc-timegrid-col.fc-day-sun {
background-color: hsl(0 0% 6%);
}
.fc .fc-col-header-cell {
background-color: hsl(0 0% 8% / 0.65);
border-color: var(--fc-border-color);