kopia lustrzana https://github.com/vitorpamplona/amethyst
Adds extra space before uncited hashtags.
rodzic
f91a0d4cd0
commit
be09577db1
|
@ -120,8 +120,7 @@ fun RichTextViewer(
|
|||
content.contains("```")
|
||||
) {
|
||||
MaterialRichText(
|
||||
style = myMarkDownStyle,
|
||||
modifier = Modifier.padding(bottom = 5.dp)
|
||||
style = myMarkDownStyle
|
||||
) {
|
||||
Markdown(
|
||||
content = content,
|
||||
|
|
|
@ -542,9 +542,11 @@ fun DisplayUncitedHashtags(
|
|||
) {
|
||||
val hashtags = noteEvent.hashtags()
|
||||
if (hashtags.isNotEmpty()) {
|
||||
FlowRow() {
|
||||
hashtags.forEach {
|
||||
if (!eventContent.contains(it, true)) {
|
||||
FlowRow(
|
||||
modifier = Modifier.padding(top = 5.dp)
|
||||
) {
|
||||
hashtags.forEach { hashtag ->
|
||||
if (!eventContent.contains(hashtag, true)) {
|
||||
ClickableText(
|
||||
text = AnnotatedString("#$hashtag "),
|
||||
onClick = { navController.navigate("Hashtag/$hashtag") },
|
||||
|
|
Ładowanie…
Reference in New Issue