From e6b7ab8204492cec578a24b65c2712cb0dabb51e Mon Sep 17 00:00:00 2001 From: Jorge Martin Espinosa Date: Wed, 24 Sep 2025 10:16:42 +0200 Subject: [PATCH] Ensure the thread summary sender display name won't wrap to the next line (#5403) --- .../messages/impl/timeline/components/TimelineItemEventRow.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRow.kt b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRow.kt index fb45278b78..1503bf236b 100644 --- a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRow.kt +++ b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRow.kt @@ -352,6 +352,8 @@ private fun ThreadSummaryView( text = latestEvent.senderProfile.getDisambiguatedDisplayName(latestEvent.senderId), style = ElementTheme.typography.fontBodySmMedium, color = ElementTheme.colors.textSecondary, + maxLines = 1, + overflow = TextOverflow.Ellipsis, ) Spacer(modifier = Modifier.width(4.dp))