diff --git a/components/calendar/calendar-agenda-view.tsx b/components/calendar/calendar-agenda-view.tsx index fd5e29d54..74d8b135d 100644 --- a/components/calendar/calendar-agenda-view.tsx +++ b/components/calendar/calendar-agenda-view.tsx @@ -261,10 +261,11 @@ export function CalendarAgendaView({ onMouseEnter={(e) => onHoverEvent?.(ev, e.currentTarget.getBoundingClientRect())} onMouseLeave={() => onHoverLeave?.()} onContextMenu={onContextMenuEvent ? (e) => onContextMenuEvent(e, ev) : undefined} - className="w-full flex items-start gap-3 px-2 rounded-md hover:bg-muted/60 transition-colors text-start" + className="w-full flex flex-wrap min-[30rem]:flex-nowrap items-start gap-x-3 gap-y-0.5 px-2 rounded-md hover:bg-muted/60 transition-colors text-start" style={{ paddingBlock: 'var(--density-item-py)' }} > - + {/* On a phone the time takes a line of its own: beside the date column it left the title two words. */} + {ev.showWithoutTime ? t("events.all_day") : {`${formatTime(start)} – ${formatTime(end)}`}}