Fixes misalignment of some links to users in the middle of the note.

This commit is contained in:
Vitor Pamplona 2024-01-30 11:51:02 -05:00
parent 1ac990b67c
commit 277bf0a603

View File

@ -280,12 +280,10 @@ private fun RenderUserAsClickableText(
derivedStateOf { userState?.user?.info?.latestMetadata?.tags?.toImmutableListOfLists() }
}
val addedCharts = remember(nip19) { "${nip19.additionalChars}" }
userDisplayName?.let {
CreateClickableTextWithEmoji(
clickablePart = it,
suffix = addedCharts,
suffix = nip19.additionalChars,
maxLines = 1,
route = route,
nav = nav,
@ -335,6 +333,7 @@ fun CreateClickableText(
ClickableText(
text = text,
maxLines = maxLines,
style = currentStyle,
onClick = { nav(route) },
)
}