mirror of
https://github.com/fiatjaf/nak.git
synced 2024-10-30 09:09:08 -04:00
stop autolinking on nip19 codes, add an icon afterwards.
This commit is contained in:
parent
ecbac4c156
commit
bd58a6fb53
1
ext.svg
Normal file
1
ext.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17 13.5v6H5v-12h6m3-3h6v6m0-6-9 9" class="icon_svg-stroke" stroke="#666" stroke-width="1.5" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg>
|
After Width: | Height: | Size: 278 B |
|
@ -232,12 +232,12 @@ object Components {
|
||||||
): Resource[IO, HtmlDivElement[IO]] =
|
): Resource[IO, HtmlDivElement[IO]] =
|
||||||
div(
|
div(
|
||||||
span(cls := "font-bold", key + " "),
|
span(cls := "font-bold", key + " "),
|
||||||
span(
|
span(Styles.mono, cls := "break-all", code),
|
||||||
Styles.mono,
|
|
||||||
a(
|
a(
|
||||||
href := "nostr:" + code,
|
href := "nostr:" + code,
|
||||||
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",
|
cls := "inline-block w-8 mr-2",
|
||||||
src := "/favicon.ico"
|
src := "/favicon.ico"
|
||||||
),
|
),
|
||||||
|
a(
|
||||||
|
href := "https://github.com/fiatjaf/nostr-army-knife",
|
||||||
"nostr army knife"
|
"nostr army knife"
|
||||||
|
)
|
||||||
),
|
),
|
||||||
div(
|
div(
|
||||||
cls := "flex my-3",
|
cls := "flex my-3",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user