Ensure user display name is clipped to the Text area (#1950)

This commit is contained in:
Benoit Marty 2023-12-05 17:16:36 +01:00
parent aec3fbcc47
commit 17bee2ee95
6 changed files with 17 additions and 4 deletions

View file

@ -360,6 +360,7 @@ private fun MessageSenderInformation(
Avatar(senderAvatar)
Spacer(modifier = Modifier.width(4.dp))
Text(
modifier = Modifier.clipToBounds(),
text = sender,
maxLines = 1,
overflow = TextOverflow.Ellipsis,