User display name overflows in timeline messages (#2767)
* User display name overflows in timeline messages * Update screenshots --------- Co-authored-by: ElementBot <benoitm+elementbot@element.io>
This commit is contained in:
parent
d9c4c189af
commit
eaeebf9e75
6 changed files with 10 additions and 6 deletions
1
changelog.d/2761.bugfix
Normal file
1
changelog.d/2761.bugfix
Normal file
|
|
@ -0,0 +1 @@
|
|||
User display name overflows in timeline messages when it's way too long.
|
||||
|
|
@ -93,6 +93,7 @@ private fun RowScope.MainText(
|
|||
text = text,
|
||||
style = style,
|
||||
color = color,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
)
|
||||
}
|
||||
|
|
@ -117,6 +118,7 @@ private fun RowScope.SecondaryText(
|
|||
text = text,
|
||||
style = style,
|
||||
color = MaterialTheme.colorScheme.secondary,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -701,6 +701,7 @@ internal fun TimelineItemEventRowPreview() = ElementPreview {
|
|||
sequenceOf(false, true).forEach { isMine ->
|
||||
ATimelineItemEventRow(
|
||||
event = aTimelineItemEvent(
|
||||
senderDisplayName = "Sender with a super long name that should ellipsize",
|
||||
isMine = isMine,
|
||||
content = aTimelineItemTextContent().copy(
|
||||
body = "A long text which will be displayed on several lines and" +
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d509d8fb7fe67e7ee2e04794608f5e4c9b1ec5ea309384ca25eaa0600416be5f
|
||||
size 23064
|
||||
oid sha256:777209b58d18b92e86d4ac90cb741d477793caa84bb1b2b19a3b459675bae244
|
||||
size 18276
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:38d438ae9245b5e7819c3f8c741f89b395956fbb357ddf7570bc457a88a36739
|
||||
size 183329
|
||||
oid sha256:6a221ada168ff38af4e6227170ed42e3765d7fdc99f410f72a30680f006cd7f7
|
||||
size 187751
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cf66a1b76b39b8055875344db3aee4a638df738cb8f6991b55f057c7da05a1be
|
||||
size 180936
|
||||
oid sha256:57f411b632ea16f41e56eefbc6f37059f8053469fecfa4f5aaccc6edd467c10b
|
||||
size 185075
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue