From 412c5c557af60b3f72ba50320b7e3c91eccd79bb Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 17 Mar 2023 14:06:00 -0400 Subject: [PATCH] Adding the suffix after the hashtag icon --- .../amethyst/ui/components/RichTextViewer.kt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/RichTextViewer.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/RichTextViewer.kt index 3690211818..a811c8b2e3 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/RichTextViewer.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/RichTextViewer.kt @@ -231,14 +231,6 @@ fun HashTag(word: String, accountViewModel: AccountViewModel, navController: Nav ) { append("#$tag") } - if (suffix != null) { - withStyle( - LocalTextStyle.current.copy(color = MaterialTheme.colors.onBackground) - .toSpanStyle() - ) { - append(suffix) - } - } }, onClick = { navController.navigate("Hashtag/$tag") } ) @@ -252,7 +244,7 @@ fun HashTag(word: String, accountViewModel: AccountViewModel, navController: Nav ) } - Text(text = " ") + Text(text = "$suffix ") } else { Text(text = "$word ") }