Fixes misalignment of some links to users in the middle of the note.
This commit is contained in:
@@ -280,12 +280,10 @@ private fun RenderUserAsClickableText(
|
|||||||
derivedStateOf { userState?.user?.info?.latestMetadata?.tags?.toImmutableListOfLists() }
|
derivedStateOf { userState?.user?.info?.latestMetadata?.tags?.toImmutableListOfLists() }
|
||||||
}
|
}
|
||||||
|
|
||||||
val addedCharts = remember(nip19) { "${nip19.additionalChars}" }
|
|
||||||
|
|
||||||
userDisplayName?.let {
|
userDisplayName?.let {
|
||||||
CreateClickableTextWithEmoji(
|
CreateClickableTextWithEmoji(
|
||||||
clickablePart = it,
|
clickablePart = it,
|
||||||
suffix = addedCharts,
|
suffix = nip19.additionalChars,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
route = route,
|
route = route,
|
||||||
nav = nav,
|
nav = nav,
|
||||||
@@ -335,6 +333,7 @@ fun CreateClickableText(
|
|||||||
ClickableText(
|
ClickableText(
|
||||||
text = text,
|
text = text,
|
||||||
maxLines = maxLines,
|
maxLines = maxLines,
|
||||||
|
style = currentStyle,
|
||||||
onClick = { nav(route) },
|
onClick = { nav(route) },
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user