mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Reply: render sender name of replied event on 1 line only.
This commit is contained in:
committed by
Benoit Marty
parent
237ba3d727
commit
bcbd989ec0
+3
-1
@@ -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" +
|
||||||
|
|||||||
Reference in New Issue
Block a user