forked from coracle/flotilla
Fix tagging, relay search
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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>
|
||||
•
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user