each relay hint in a separate component.

This commit is contained in:
fiatjaf 2023-06-20 11:48:50 -03:00
parent dff57c207e
commit ba2d86ca33
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -254,7 +254,20 @@ object Components {
div( div(
cls := "flex items-center space-x-3", cls := "flex items-center space-x-3",
span(cls := "font-bold", "relay hints "), span(cls := "font-bold", "relay hints "),
span(Styles.mono, cls := "max-w-xl", value), if relays.size == 0 then div("")
else
div(
cls := "flex flex-wrap max-w-xl",
relays
.map(url =>
div(
Styles.mono,
cls := "rounded py-0.5 px-1 mr-1 mb-1 bg-orange-100",
url
)
)
)
,
active.map { active.map {
case true => case true =>
div( div(