mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 11:48:24 +00:00
fix(messages): back to the compact "• 10h" row time
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0113Y3NP1fRnbQJyrH6D6YQj
This commit is contained in:
+5
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user