From cfd632cec7e7f3942e0895ecb9e82092897340d2 Mon Sep 17 00:00:00 2001 From: "maarten.vercruysse" Date: Fri, 7 Jul 2023 09:54:26 +0200 Subject: [PATCH] Add "..." for too long community names --- .../java/com/jerboa/ui/components/community/CommunityLink.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/jerboa/ui/components/community/CommunityLink.kt b/app/src/main/java/com/jerboa/ui/components/community/CommunityLink.kt index d22561b3e..5414f01c9 100644 --- a/app/src/main/java/com/jerboa/ui/components/community/CommunityLink.kt +++ b/app/src/main/java/com/jerboa/ui/components/community/CommunityLink.kt @@ -42,13 +42,14 @@ fun CommunityName( community: Community, color: Color = MaterialTheme.colorScheme.primary, style: TextStyle = MaterialTheme.typography.bodyMedium, + overflow: TextOverflow = TextOverflow.Ellipsis, ) { Text( text = communityNameShown(community), style = style, color = color, modifier = modifier, - overflow = TextOverflow.Clip, + overflow = overflow, maxLines = 1, ) }