stop autolinking on nip19 codes, add an icon afterwards.

This commit is contained in:
fiatjaf
2023-04-24 11:57:47 -03:00
parent ecbac4c156
commit bd58a6fb53
3 changed files with 11 additions and 7 deletions

View File

@@ -232,12 +232,12 @@ object Components {
): Resource[IO, HtmlDivElement[IO]] =
div(
span(cls := "font-bold", key + " "),
span(
Styles.mono,
a(
href := "nostr:" + code,
code
)
span(Styles.mono, cls := "break-all", code),
a(
href := "nostr:" + code,
external
)
)
private val external = img(cls := "inline w-4 ml-2", src := "ext.svg")
}