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
Audit at 1920×1040 and 800×600: every screen has room and lines up
Yashwanth Kamireddi4eeb044310df
diff --git a/.uiverify/calendar.mjs b/.uiverify/calendar.mjsindex adb7650..f0a541f 100644--- a/.uiverify/calendar.mjs+++ b/.uiverify/calendar.mjs@@ -1,6 +1,6 @@// Calendar's Day and Week grids, checked in a real browser.import { engine } from "./engine.mjs";-import { SERVICES, installStub } from "./stub.mjs";+import { SERVICES, installStub, openScreen } from "./stub.mjs";const b = await engine.launch();const ctx = await b.newContext({ viewport: { width: 1280, height: 900 } });@@ -230,7 +230,7 @@ ok(/Sep/.test(title) && /Oct/.test(title), `a week across two months is named fo// A Wednesday whose week crosses into the next month, so Week's title is its longest.await small.clock.setFixedTime(new Date(2026, 8, 30, 18, 0));await small.goto("http://localhost:4173", { waitUntil: "networkidle" });- await small.locator(".nav-item", { hasText: "Calendar" }).click();+ await openScreen(small, "Calendar");for (const view of ["Week", "Month"]) {await small.getByRole("button", { name: view, exact: true }).click();await small.waitForTimeout(400);diff --git a/.uiverify/compact.mjs b/.uiverify/compact.mjsindex b223e1e..a550225 100644--- a/.uiverify/compact.mjs+++ b/.uiverify/compact.mjs@@ -6,7 +6,7 @@// words to a line, Drive cut every name to five letters, and a month cell said "3 more" over// the next day.import { engine } from "./engine.mjs";-import { SERVICES, installStub } from "./stub.mjs";+import { SERVICES, installStub, openScreen } from "./stub.mjs";const b = await engine.launch();const ctx = await b.newContext({ viewport: { width: 480, height: 400 } });@@ -97,5 +97,22 @@ if ((await toggle.count()) === 1) {`a narrow month: ${JSON.stringify(month)}`);}+// A small laptop's window: 800 wide, where beside the sidebar a contact's card had 250px and+// wrapped a phone number over four lines. The sidebar steps aside from 900 down.+{+ const mid = await ctx.newPage();+ await mid.setViewportSize({ width: 800, height: 600 });+ await mid.goto("http://localhost:4173", { waitUntil: "networkidle" });+ await openScreen(mid, "Contacts");+ await mid.waitForTimeout(400);+ const phone = await mid.evaluate(() => {+ const a = [...document.querySelectorAll(".contact-detail a")].find((x) => x.textContent.includes("+91"));+ if (!a) return null;+ return { lines: Math.round(a.getBoundingClientRect().height / parseFloat(getComputedStyle(a).lineHeight || "20")), text: a.textContent };+ });+ ok(phone && phone.lines <= 1, "at 800 wide a phone number keeps to one line", `at 800 wide: ${JSON.stringify(phone)}`);+ await mid.close();+}+await b.close();process.exitCode = failures === 0 ? 0 : 1;diff --git a/src/styles/app.css b/src/styles/app.cssindex c77c8d9..db311c6 100644--- a/src/styles/app.css+++ b/src/styles/app.css@@ -445,9 +445,10 @@/** A narrow window, as iPadOS does it: the sidebar steps aside and the content takes the whole* width, with a button at the top left to bring the sidebar back over it. Picking a screen,- * Escape or a click outside puts it away again.+ * Escape or a click outside puts it away again. From 900px down: beside the sidebar an 800px+ * window left the content 520px, and a phone number wrapped over four lines.*/-@media (max-width: 720px) {+@media (max-width: 900px) {/* Outranks each screen's own `.content:has(...)` padding. */.library > main.content { padding: 54px 16px 16px; }.sidebar {@@ -486,6 +487,17 @@cursor: default;}.sidebar-toggle:focus-visible { outline: 3px solid var(--gold-ring); }+ .is-sidebar-open .sidebar-scrim {+ position: absolute;+ z-index: 25;+ inset: 0;+ display: block;+ background: rgba(0, 0, 0, 0.35);+ }+}++/* Narrower again, where a screen shows one column at a time and needs a way back. */+@media (max-width: 720px) {/* Back to the list a detail was opened from, in the accent, as iOS writes it. */.compact-back {display: inline-flex;@@ -506,13 +518,6 @@}.compact-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.compact-back:focus-visible { outline: 3px solid var(--gold-ring); }- .is-sidebar-open .sidebar-scrim {- position: absolute;- z-index: 25;- inset: 0;- display: block;- background: rgba(0, 0, 0, 0.35);- }}.content h1 { margin: 0 0 6px; font-size: var(--t-28); font-weight: 600; letter-spacing: -0.022em; }/*@@ -877,7 +882,8 @@A file browser: a path you can walk back along, then rows of what is here. */.drive { display: flex; flex-direction: column; height: 100%; min-height: 0; }-.drive > * { width: 100%; max-width: 96ch; }+/* The list fills the pane, as Finder's does; held to 96ch it left most of a wide window empty. */+.drive > * { width: 100%; }.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-width: 0; }@@ -934,9 +940,14 @@.drive-row-hit:disabled { cursor: default; }.drive-row-hit:focus-visible { outline: 3px solid var(--gold-ring); outline-offset: -1px; }+/* One width for every row, whether it has three actions or four, so the columns before it+ line up down the list — a file's extra Download had pushed its size and date left. */.drive-row-actions {display: flex;+ flex: none;+ justify-content: flex-end;gap: 1px;+ width: calc(4 * 26px + 3px + 6px);padding-right: 6px;opacity: 0;}@@ -1082,6 +1093,7 @@.drive-row-hit > .drive-meta:last-child { grid-area: date; }.drive-row-hit > .drive-meta:nth-of-type(3):not(:empty)::after { content: " ·"; }.drive-row-actions {+ width: auto;position: absolute;top: 50%;right: 4px;diff --git a/src/styles/calendar.css b/src/styles/calendar.cssindex 5bbf34b..f00fd0c 100644--- a/src/styles/calendar.css+++ b/src/styles/calendar.css@@ -499,7 +499,8 @@.cx-year-month.is-current { color: var(--sys-red); }@container cx-page (max-width: 900px) { .cal-year { grid-template-columns: repeat(3, minmax(0, 1fr)); } }-@container cx-page (max-width: 760px) {+/* Below this the calendars column leaves the grid too little room for its title and controls. */+@container cx-page (max-width: 860px) {.cx { grid-template-columns: 1fr; }.cx-side { display: none; }.cal-year { grid-template-columns: repeat(2, minmax(0, 1fr)); }diff --git a/src/styles/reminders.css b/src/styles/reminders.cssindex cfe50c3..c607a79 100644--- a/src/styles/reminders.css+++ b/src/styles/reminders.css@@ -399,6 +399,8 @@font-size: var(--t-13);line-height: 20px;outline: none;+ /* A title longer than its row ends in "…" rather than being cut mid-letter. */+ text-overflow: ellipsis;}.rx-title:focus { box-shadow: 0 1px 0 var(--accent); }.is-done .rx-title { color: var(--text-3); }