mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-09 23:32:36 +02:00
Remove spaces after bench and image previews
This commit is contained in:
@@ -154,7 +154,7 @@ fun RichTextViewer(
|
|||||||
// FlowRow doesn't work well with paragraphs. So we need to split them
|
// FlowRow doesn't work well with paragraphs. So we need to split them
|
||||||
content.split('\n').forEach { paragraph ->
|
content.split('\n').forEach { paragraph ->
|
||||||
FlowRow() {
|
FlowRow() {
|
||||||
val s = if (isArabic(paragraph)) paragraph.split(' ').reversed() else paragraph.split(' ')
|
val s = if (isArabic(paragraph)) paragraph.trim().split(' ').reversed() else paragraph.trim().split(' ')
|
||||||
s.forEach { word: String ->
|
s.forEach { word: String ->
|
||||||
if (canPreview) {
|
if (canPreview) {
|
||||||
// Explicit URL
|
// Explicit URL
|
||||||
@@ -385,9 +385,11 @@ fun BechLink(word: String, canPreview: Boolean, backgroundColor: Color, accountV
|
|||||||
isQuotedNote = true,
|
isQuotedNote = true,
|
||||||
navController = navController
|
navController = navController
|
||||||
)
|
)
|
||||||
|
if (!it.second.isNullOrEmpty()) {
|
||||||
Text(
|
Text(
|
||||||
"${it.second} "
|
"${it.second} "
|
||||||
)
|
)
|
||||||
|
}
|
||||||
} ?: nip19Route?.let {
|
} ?: nip19Route?.let {
|
||||||
ClickableRoute(it, navController)
|
ClickableRoute(it, navController)
|
||||||
} ?: Text(text = "$word ")
|
} ?: Text(text = "$word ")
|
||||||
|
Reference in New Issue
Block a user