mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-11 16:57:39 +00:00
fix(chat): mirror the timestamp to the inner edge on own bubbles
The compact timestamp was always aligned to the bubble's end, so on the logged-in user's own (right-aligned) bubbles it hugged the screen edge while everyone else's sat on the center-facing side. Align it to the start for own bubbles so both sides mirror — the time always sits on the edge facing the center of the chat. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0129yvP2hmVeDFfuKKy94tqX
This commit is contained in:
+4
-1
@@ -377,7 +377,10 @@ private fun InnerChatBubble(
|
||||
if (showDetails.value) {
|
||||
detailRow()
|
||||
} else if (timeRow != null) {
|
||||
Box(modifier = Modifier.align(Alignment.End)) {
|
||||
// Mirror the timestamp with the bubble so it sits on the same
|
||||
// center-facing edge for both sides: the left for the logged-in user's
|
||||
// own (right-aligned) bubbles, the right for everyone else's.
|
||||
Box(modifier = Modifier.align(if (isLoggedInUser) Alignment.Start else Alignment.End)) {
|
||||
timeRow()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user