tweak relay status component

This commit is contained in:
Jon Staab 2025-06-05 11:49:45 -07:00
parent 8e28ff13e9
commit ac756bf266

View file

@ -14,13 +14,14 @@
const owner = $derived($relay?.profile?.pubkey) const owner = $derived($relay?.profile?.pubkey)
</script> </script>
<div class="card2 bg-alt"> <div class="card2 bg-alt flex flex-col gap-4">
<h3 class="mb-4 flex items-center gap-2 text-lg font-semibold"> <div class="flex items-center justify-between">
<h3 class="flex items-center gap-2 text-lg font-semibold">
<Icon icon="server" /> <Icon icon="server" />
Relay Status Relay Details
</h3> </h3>
<div class="flex flex-col gap-3">
<SocketStatusIndicator {url} /> <SocketStatusIndicator {url} />
</div>
{#if $relay?.profile} {#if $relay?.profile}
{@const {software, version, supported_nips, limitation} = $relay.profile} {@const {software, version, supported_nips, limitation} = $relay.profile}
<div class="flex flex-wrap gap-1"> <div class="flex flex-wrap gap-1">
@ -67,4 +68,3 @@
</div> </div>
{/if} {/if}
</div> </div>
</div>