Reply: render sender name of replied event on 1 line only.

This commit is contained in:
Benoit Marty 2024-04-22 15:54:05 +02:00 committed by Benoit Marty
parent 237ba3d727
commit bcbd989ec0

View file

@ -566,6 +566,8 @@ private fun ReplyToModeView(
modifier = Modifier
.fillMaxWidth()
.clipToBounds(),
maxLines = 1,
overflow = TextOverflow.Ellipsis,
style = ElementTheme.typography.fontBodySmMedium,
textAlign = TextAlign.Start,
color = ElementTheme.materialColors.primary,
@ -731,7 +733,7 @@ internal fun TextComposerReplyPreview() = ElementPreview {
voiceMessageState = VoiceMessageState.Idle,
composerMode = MessageComposerMode.Reply(
isThreaded = true,
senderName = "Alice",
senderName = "Alice with a very long name to test overflow in the composer",
eventId = EventId("$1234"),
attachmentThumbnailInfo = null,
defaultContent = "A message\n" +