From bf18661c4debefc3227c1f3bd33584cfba612fe5 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 2 Oct 2026 12:55:51 +0000 Subject: [PATCH] =?UTF-8?q?fix(messages):=20back=20to=20the=20compact=20"?= =?UTF-8?q?=E2=80=A2=2010h"=20row=20time?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Messages row time had moved to TimeAgoStyle.Short, which on Android goes through the platform relative-span formatter and renders "12 hr. ago" / "4 days ago", several times wider than before and eating into the title. Use the app's compact form again (DottedTight, "• 10h"); the row's own gap keeps the space before the dot. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0113Y3NP1fRnbQJyrH6D6YQj --- .../screen/loggedIn/chats/rooms/ChatroomHeaderCompose.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/commonsUI/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/ui/screen/loggedIn/chats/rooms/ChatroomHeaderCompose.kt b/commonsUI/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/ui/screen/loggedIn/chats/rooms/ChatroomHeaderCompose.kt index 8ec2212d17..95423a975b 100644 --- a/commonsUI/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/ui/screen/loggedIn/chats/rooms/ChatroomHeaderCompose.kt +++ b/commonsUI/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/ui/screen/loggedIn/chats/rooms/ChatroomHeaderCompose.kt @@ -1450,11 +1450,13 @@ private fun TimeAgo( hasNewMessages: Boolean, ) { if (channelLastTime == null) return - // No leading "•": the time sits alone at the end of the title line, so there is nothing to - // separate it from. It takes the accent only when the row is unread, beside the dot below it. + // The compact "• 10h" form. Not TimeAgoStyle.Short: on Android that goes through the platform's + // relative-span formatter ("12 hr. ago", "4 days ago"), which is several times wider and eats + // into the title. Tight variant because TimeAgoGap already provides the space before the dot. + // It takes the accent only when the row is unread, beside the dot below it. ToggleableTimeAgoText( timestamp = channelLastTime, - style = TimeAgoStyle.Short, + style = TimeAgoStyle.DottedTight, color = if (hasNewMessages) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.grayText, fontSize = MaterialTheme.typography.bodySmall.fontSize, modifier = TimeAgoGap,