Reply: render sender name of replied event on 1 line only.
This commit is contained in:
parent
e26fe58fd3
commit
9e59c8a854
1 changed files with 3 additions and 1 deletions
|
|
@ -566,6 +566,8 @@ private fun ReplyToModeView(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.clipToBounds(),
|
.clipToBounds(),
|
||||||
|
maxLines = 1,
|
||||||
|
overflow = TextOverflow.Ellipsis,
|
||||||
style = ElementTheme.typography.fontBodySmMedium,
|
style = ElementTheme.typography.fontBodySmMedium,
|
||||||
textAlign = TextAlign.Start,
|
textAlign = TextAlign.Start,
|
||||||
color = ElementTheme.materialColors.primary,
|
color = ElementTheme.materialColors.primary,
|
||||||
|
|
@ -731,7 +733,7 @@ internal fun TextComposerReplyPreview() = ElementPreview {
|
||||||
voiceMessageState = VoiceMessageState.Idle,
|
voiceMessageState = VoiceMessageState.Idle,
|
||||||
composerMode = MessageComposerMode.Reply(
|
composerMode = MessageComposerMode.Reply(
|
||||||
isThreaded = true,
|
isThreaded = true,
|
||||||
senderName = "Alice",
|
senderName = "Alice with a very long name to test overflow in the composer",
|
||||||
eventId = EventId("$1234"),
|
eventId = EventId("$1234"),
|
||||||
attachmentThumbnailInfo = null,
|
attachmentThumbnailInfo = null,
|
||||||
defaultContent = "A message\n" +
|
defaultContent = "A message\n" +
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue