mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-25 19:46:58 +02:00
Adding the suffix after the hashtag icon
This commit is contained in:
@@ -231,14 +231,6 @@ fun HashTag(word: String, accountViewModel: AccountViewModel, navController: Nav
|
|||||||
) {
|
) {
|
||||||
append("#$tag")
|
append("#$tag")
|
||||||
}
|
}
|
||||||
if (suffix != null) {
|
|
||||||
withStyle(
|
|
||||||
LocalTextStyle.current.copy(color = MaterialTheme.colors.onBackground)
|
|
||||||
.toSpanStyle()
|
|
||||||
) {
|
|
||||||
append(suffix)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
onClick = { navController.navigate("Hashtag/$tag") }
|
onClick = { navController.navigate("Hashtag/$tag") }
|
||||||
)
|
)
|
||||||
@@ -252,7 +244,7 @@ fun HashTag(word: String, accountViewModel: AccountViewModel, navController: Nav
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
Text(text = " ")
|
Text(text = "$suffix ")
|
||||||
} else {
|
} else {
|
||||||
Text(text = "$word ")
|
Text(text = "$word ")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user