diff --git a/packages/widgets/src/calendar/calender-day.tsx b/packages/widgets/src/calendar/calender-day.tsx index 122601157..7fcef5396 100644 --- a/packages/widgets/src/calendar/calender-day.tsx +++ b/packages/widgets/src/calendar/calender-day.tsx @@ -23,6 +23,7 @@ export const CalendarDay = ({ date, events, disabled, rootHeight, rootWidth }: C const minAxisSize = Math.min(rootWidth, rootHeight); const shouldScaleDown = minAxisSize < 350; + const isSmall = rootHeight < 256; return ( {date.getDate()} - + {/* Popover has some offset on the left side, padding is removed because of scrollarea paddings */} @@ -73,15 +75,14 @@ export const CalendarDay = ({ date, events, disabled, rootHeight, rootWidth }: C interface NotificationIndicatorProps { events: CalendarEvent[]; - rootHeight: number; + isSmall: boolean; } -const NotificationIndicator = ({ events, rootHeight }: NotificationIndicatorProps) => { - const isSmall = rootHeight < 256; +const NotificationIndicator = ({ events, isSmall }: NotificationIndicatorProps) => { const notificationEvents = [...new Set(events.map((event) => event.links[0]?.notificationColor))].filter(String); /* position bottom is lower when small to not be on top of number*/ return ( - + {notificationEvents.map((notificationEvent) => { return ; })} diff --git a/packages/widgets/src/calendar/component.tsx b/packages/widgets/src/calendar/component.tsx index 064067b30..09f3a9d65 100644 --- a/packages/widgets/src/calendar/component.tsx +++ b/packages/widgets/src/calendar/component.tsx @@ -107,11 +107,10 @@ const CalendarBase = ({ isEditMode, events, month, setMonth, options }: Calendar day: { borderRadius: actualItemRadius, width: "100%", - height: "100%", - }, - month: { - height: "100%", + height: "auto", + position: "relative", }, + month: {}, weekday: { padding: 0, },