Skip to content

Commit

Permalink
Fixes misalignment of some links to users in the middle of the note.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Jan 30, 2024
1 parent 1ac990b commit 277bf0a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -335,6 +333,7 @@ fun CreateClickableText(
ClickableText(
text = text,
maxLines = maxLines,
style = currentStyle,
onClick = { nav(route) },
)
}
Expand Down

0 comments on commit 277bf0a

Please sign in to comment.