diff --git a/packages/widgets/src/calendar/calendar-event-list.tsx b/packages/widgets/src/calendar/calendar-event-list.tsx index 22eaa8660..1c2c9283f 100644 --- a/packages/widgets/src/calendar/calendar-event-list.tsx +++ b/packages/widgets/src/calendar/calendar-event-list.tsx @@ -30,7 +30,7 @@ export const CalendarEventList = ({ events }: CalendarEventListProps) => { {date.getDate()} - {rootHeight >= 350 && } + - + {/* Popover has some offset on the left side, padding is removed because of scrollarea paddings */} + @@ -72,14 +73,17 @@ export const CalendarDay = ({ date, events, disabled, rootHeight, rootWidth }: C interface NotificationIndicatorProps { events: CalendarEvent[]; + rootHeight: number; } -const NotificationIndicator = ({ events }: NotificationIndicatorProps) => { +const NotificationIndicator = ({ events, rootHeight }: NotificationIndicatorProps) => { + const isSmall = rootHeight < 256; 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 ; + return ; })} ); diff --git a/packages/widgets/src/calendar/component.tsx b/packages/widgets/src/calendar/component.tsx index d05bbc7d8..9447459a2 100644 --- a/packages/widgets/src/calendar/component.tsx +++ b/packages/widgets/src/calendar/component.tsx @@ -105,8 +105,8 @@ const CalendarBase = ({ isEditMode, events, month, setMonth, options }: Calendar }, day: { borderRadius: actualItemRadius, - width: width < 350 ? 20 : 50, - height: height < 350 ? 20 : 50, + width: "100%", + height: "100%", }, month: { height: "100%",