Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.
Rust apple-notesapple-reminderscloudkitcrdtdesktop-appicloudicloud-calendaricloud-driveicloud-notesicloud-photosiphonelinuxlinux-desktoplocal-firstoffline-firstprivacyrusttauritauri-appwindows
Calendar Day view as macOS 27 sets it: the month above the day in the right pane, not twice
Yashwanth Kamireddi4576e9bb42d0
diff --git a/src/screens/calendar/CalendarView.tsx b/src/screens/calendar/CalendarView.tsxindex 9377ee7..184fcc8 100644--- a/src/screens/calendar/CalendarView.tsx+++ b/src/screens/calendar/CalendarView.tsx@@ -674,7 +674,15 @@ export function CalendarView() {reminders={due}calendars={byGuid}onOpen={(e, at) => openDraft(draftOf(e), at)}- />+ >+ {/* As macOS 27's Day view sets it: the month above the day, to step across it. */}+ <MiniMonth+ selected={selected}+ today={now}+ busy={(d) => dayItems(d).length > 0}+ onPick={(d) => setSelected(d)}+ />+ </DayPane>)}</div>)}@@ -1744,12 +1752,14 @@ function DayPane({reminders,calendars,onOpen,+ children,}: {day: Date;events: CalendarEvent[];reminders: Reminder[];calendars: Map<string, Calendar>;onOpen: (e: CalendarEvent, at: Anchor) => void;+ children?: React.ReactNode;}) {const from = seconds(day);const to = seconds(addDays(day, 1));@@ -1775,6 +1785,7 @@ function DayPane({const nothing = allDay.length + timed.length + due.length === 0;return (<aside className="cx-pane" aria-label={day.toLocaleDateString(undefined, { dateStyle: "full" })}>+ {children && <div className="cx-pane-month">{children}</div>}<h2 className="cx-pane-day">{day.toLocaleDateString(undefined, { weekday: "long" })}</h2><p className="cx-pane-date">{day.toLocaleDateString(undefined, { day: "numeric", month: "long", year: "numeric" })}</p>{nothing ? (diff --git a/src/styles/calendar.css b/src/styles/calendar.cssindex 2da2d8a..468b431 100644--- a/src/styles/calendar.css+++ b/src/styles/calendar.css@@ -736,3 +736,6 @@@container cx-page (max-width: 900px) { .cx-pane { display: none; } }.cx-info-url { margin-top: 6px; font-size: var(--t-13); color: var(--sys-blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.cx-pane-month { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--separator); }+/* With the month in the Day pane, the sidebar's copy would be the same month twice. */+.cx:has(.cx-pane-month) .cx-side .cx-minimonth { display: none; }