Adds extra space before uncited hashtags.

This commit is contained in:
Vitor Pamplona
2023-03-23 11:07:29 -04:00
parent f91a0d4cd0
commit be09577db1
2 changed files with 6 additions and 5 deletions

View File

@@ -120,8 +120,7 @@ fun RichTextViewer(
content.contains("```") content.contains("```")
) { ) {
MaterialRichText( MaterialRichText(
style = myMarkDownStyle, style = myMarkDownStyle
modifier = Modifier.padding(bottom = 5.dp)
) { ) {
Markdown( Markdown(
content = content, content = content,

View File

@@ -542,9 +542,11 @@ fun DisplayUncitedHashtags(
) { ) {
val hashtags = noteEvent.hashtags() val hashtags = noteEvent.hashtags()
if (hashtags.isNotEmpty()) { if (hashtags.isNotEmpty()) {
FlowRow() { FlowRow(
hashtags.forEach { modifier = Modifier.padding(top = 5.dp)
if (!eventContent.contains(it, true)) { ) {
hashtags.forEach { hashtag ->
if (!eventContent.contains(hashtag, true)) {
ClickableText( ClickableText(
text = AnnotatedString("#$hashtag "), text = AnnotatedString("#$hashtag "),
onClick = { navController.navigate("Hashtag/$hashtag") }, onClick = { navController.navigate("Hashtag/$hashtag") },