From fab05c3ebe539beed9d85675a776fe06dc98cdce Mon Sep 17 00:00:00 2001 From: Theo Browne Date: Sat, 4 Jul 2026 04:15:42 -0700 Subject: [PATCH] Pull uncommitted work: relative time formatting tweaks (worktree 2d307dad) Co-Authored-By: Claude Fable 5 --- apps/mobile/src/features/archive/ArchivedThreadsScreen.tsx | 2 +- apps/mobile/src/features/home/HomeScreen.tsx | 2 +- apps/mobile/src/lib/time.ts | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/mobile/src/features/archive/ArchivedThreadsScreen.tsx b/apps/mobile/src/features/archive/ArchivedThreadsScreen.tsx index 3e1934100c..1ebfddf7ee 100644 --- a/apps/mobile/src/features/archive/ArchivedThreadsScreen.tsx +++ b/apps/mobile/src/features/archive/ArchivedThreadsScreen.tsx @@ -272,7 +272,7 @@ function ArchivedThreadRow(props: { {timestamp} diff --git a/apps/mobile/src/features/home/HomeScreen.tsx b/apps/mobile/src/features/home/HomeScreen.tsx index 8a68371473..8634f745ec 100644 --- a/apps/mobile/src/features/home/HomeScreen.tsx +++ b/apps/mobile/src/features/home/HomeScreen.tsx @@ -370,7 +370,7 @@ function ThreadRow(props: { {timestamp} diff --git a/apps/mobile/src/lib/time.ts b/apps/mobile/src/lib/time.ts index 9cbdada68f..1fbbc6b3e7 100644 --- a/apps/mobile/src/lib/time.ts +++ b/apps/mobile/src/lib/time.ts @@ -1,12 +1,13 @@ export function relativeTime(input: string): string { const timestamp = Date.parse(input); if (Number.isNaN(timestamp)) { - return "now"; + return "<1m"; } + // Anything under a minute renders as "<1m" rather than a live seconds count. + // The seconds ticker changed width every second and reflowed the surrounding row. const deltaSeconds = Math.max(0, Math.floor((Date.now() - timestamp) / 1000)); - if (deltaSeconds < 10) return "now"; - if (deltaSeconds < 60) return `${deltaSeconds}s`; + if (deltaSeconds < 60) return "<1m"; const deltaMinutes = Math.floor(deltaSeconds / 60); if (deltaMinutes < 60) return `${deltaMinutes}m`;