mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-22 18:02:05 +02:00
Adds extra space before uncited hashtags.
This commit is contained in:
@@ -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,
|
||||||
|
@@ -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") },
|
||||||
|
Reference in New Issue
Block a user