diff --git a/web/src/components/ActivityCalendar/CompactMonthCalendar.tsx b/web/src/components/ActivityCalendar/CompactMonthCalendar.tsx index 7e808561d..9af08da4b 100644 --- a/web/src/components/ActivityCalendar/CompactMonthCalendar.tsx +++ b/web/src/components/ActivityCalendar/CompactMonthCalendar.tsx @@ -18,7 +18,7 @@ export const CompactMonthCalendar = memo((props: CompactMonthCalendarProps) => { const today = useTodayDate(); const weekDays = useWeekdayLabels(); - const { weeks } = useCalendarMatrix({ + const { weeks, weekDays: rotatedWeekDays } = useCalendarMatrix({ month, data, weekDays, @@ -30,23 +30,33 @@ export const CompactMonthCalendar = memo((props: CompactMonthCalendarProps) => { const sizeConfig = size === "small" ? SMALL_CELL_SIZE : DEFAULT_CELL_SIZE; return ( -
- {weeks.map((week, weekIndex) => - week.days.map((day, dayIndex) => { - const tooltipText = getTooltipText(day.count, day.date, t); +
+
+ {rotatedWeekDays.map((label, index) => ( +
+ {label} +
+ ))} +
- return ( - - ); - }), - )} +
+ {weeks.map((week, weekIndex) => + week.days.map((day, dayIndex) => { + const tooltipText = getTooltipText(day.count, day.date, t); + + return ( + + ); + }), + )} +
); });