mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-09 17:18:50 +00:00
stop autolinking on nip19 codes, add an icon afterwards.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
@@ -27,7 +27,10 @@ object Main extends IOWebApp {
|
||||
cls := "inline-block w-8 mr-2",
|
||||
src := "/favicon.ico"
|
||||
),
|
||||
"nostr army knife"
|
||||
a(
|
||||
href := "https://github.com/fiatjaf/nostr-army-knife",
|
||||
"nostr army knife"
|
||||
)
|
||||
),
|
||||
div(
|
||||
cls := "flex my-3",
|
||||
|
||||
Reference in New Issue
Block a user