ui: limit length of member names in chat view (#4122)

This commit is contained in:
spaced4ndy
2024-05-03 15:34:15 +04:00
committed by GitHub
parent c4cbf751b9
commit 15a226cfd1
4 changed files with 9 additions and 3 deletions
@@ -1003,7 +1003,8 @@ fun BoxWithConstraintsScope.ChatItemsList(
Text(
memberNames(member, prevMember, memCount),
Modifier.padding(start = MEMBER_IMAGE_SIZE + 10.dp),
style = TextStyle(fontSize = 13.5.sp, color = CurrentColors.value.colors.secondary)
style = TextStyle(fontSize = 13.5.sp, color = CurrentColors.value.colors.secondary),
maxLines = 2
)
}
Row(
@@ -76,7 +76,8 @@ fun FramedItemView(
) {
Text(
sender,
style = TextStyle(fontSize = 13.5.sp, color = CurrentColors.value.colors.secondary)
style = TextStyle(fontSize = 13.5.sp, color = CurrentColors.value.colors.secondary),
maxLines = 1
)
ciQuotedMsgTextView(qi, lines = 2)
}