Fix tagging, relay search

This commit is contained in:
Jon Staab
2024-10-14 12:55:08 -07:00
parent 5621ffd1eb
commit 5e221d803e
5 changed files with 18 additions and 12 deletions
+3 -1
View File
@@ -32,11 +32,13 @@
})
</script>
<div class="column gap-2" bind:this={element}>
<div class="fixed left-6 right-6 top-6">
<label class="input input-bordered flex w-full items-center gap-2">
<Icon icon="magnifer" />
<input bind:value={term} class="grow" type="text" placeholder="Search for relays..." />
</label>
</div>
<div class="overflow-auto column gap-2 h-[50vh] mt-16" bind:this={element}>
{#each $relaySearch
.searchValues(term)
.filter(url => !$relays.includes(url))
+6 -6
View File
@@ -13,19 +13,19 @@
</script>
<div class="card2 card2-sm bg-alt column gap-2">
<div class="flex items-center justify-between">
<div class="flex items-center gap-2">
<div class="flex items-center gap-4 justify-between">
<div class="flex items-center gap-2 ellipsize">
<Icon icon="remote-controller-minimalistic" />
{displayRelayUrl(url)}
<p class="ellipsize">{displayRelayUrl(url)}</p>
</div>
<slot />
</div>
{#if $relay?.profile?.description}
<p>{$relay?.profile.description}</p>
<p class="ellipsize">{$relay?.profile.description}</p>
{/if}
<span class="flex items-center gap-1 text-sm">
<span class="flex items-center gap-1 text-sm whitespace-nowrap">
{#if $relay?.profile?.contact}
<Link external class="underline" href={$relay.profile.contact}
<Link external class="underline ellipsize" href={$relay.profile.contact}
>{displayUrl($relay.profile.contact)}</Link>
&bull;
{/if}