Skip to content

Commit d391be7

Browse files
authored
Ensure the thread summary sender display name won't wrap to the next line (#5403)
1 parent cc38651 commit d391be7

File tree

1 file changed

+2
-0
lines changed
  • features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components

1 file changed

+2
-0
lines changed

features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRow.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ private fun ThreadSummaryView(
352352
text = latestEvent.senderProfile.getDisambiguatedDisplayName(latestEvent.senderId),
353353
style = ElementTheme.typography.fontBodySmMedium,
354354
color = ElementTheme.colors.textSecondary,
355+
maxLines = 1,
356+
overflow = TextOverflow.Ellipsis,
355357
)
356358

357359
Spacer(modifier = Modifier.width(4.dp))

0 commit comments

Comments
 (0)