Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,15 @@
.cancelled {
background-color: base.$light-grey-color !important;
}

:global(.rbc-month-view .rbc-date-cell) {
padding: 0;
}

:global(.rbc-month-view .rbc-date-cell .rbc-button-link) {
display: block;
width: 100%;
height: 100%;
padding: 0.25rem 0.5rem;
text-align: left;
}
3 changes: 3 additions & 0 deletions frontend/src/components/booking-calendar/booking-calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
CURRENT_LOCALE,
dateLocalizer,
DAY_HEADER_FORMAT,
WEEKDAY_FORMAT,
dayPropGetter,
slotPropGetter,
weekRangeFormat,
Expand Down Expand Up @@ -55,6 +56,7 @@ function BookingCalendar(props: Props) {
<div className={styles.calendarWrapper}>
<Calendar
localizer={dateLocalizer}
selectable={true}
toolbar
titleAccessor="title"
startAccessor="start"
Expand All @@ -74,6 +76,7 @@ function BookingCalendar(props: Props) {
culture={CURRENT_LOCALE}
formats={{
dayHeaderFormat: DAY_HEADER_FORMAT,
weekdayFormat: WEEKDAY_FORMAT,
dayRangeHeaderFormat: weekRangeFormat,
}}
dayPropGetter={dayPropGetter}
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/utils/calendar-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import { END, START } from "../constants";
import { sort } from "./transform-utils";

export const CURRENT_LOCALE = "en-US";
export const DAY_HEADER_FORMAT = "EEEE dd MMMM";
export const DAY_HEADER_FORMAT = "EEE dd MMMM";
export const WEEKDAY_FORMAT = "EEE";
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The constant name WEEKDAY_FORMAT is ambiguous because both DAY_HEADER_FORMAT and WEEKDAY_FORMAT use the same format value 'EEE'. Consider renaming to WEEKDAY_COLUMN_FORMAT or WEEK_VIEW_DAY_FORMAT to clarify that this is specifically for the weekday column headers in month view, distinct from the day header used elsewhere.

Suggested change
export const WEEKDAY_FORMAT = "EEE";
export const WEEKDAY_COLUMN_FORMAT = "EEE";

Copilot uses AI. Check for mistakes.

const locales = {
[CURRENT_LOCALE]: enUS,
Expand Down