Move space add buttons around
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
<input bind:value={term} class="grow" type="text" />
|
||||
</label>
|
||||
<div class="overflow-auto">
|
||||
{#each chats as {id, pubkeys, messages} (id)}
|
||||
{#each chats as { id, pubkeys, messages } (id)}
|
||||
<ChatItem {id} {pubkeys} {messages} />
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
{#if others.length === 1}
|
||||
{@const pubkey = others[0]}
|
||||
{@const showProfile = () => pushModal(ProfileDetail, {pubkey})}
|
||||
<Button on:click={showProfile}>
|
||||
<Button on:click={showProfile} class="row-2">
|
||||
<ProfileCircle {pubkey} size={5} />
|
||||
<ProfileName {pubkey} />
|
||||
</Button>
|
||||
@@ -119,16 +119,14 @@
|
||||
<ProfileName pubkey={others[0]} />
|
||||
and {others.length - 1}
|
||||
{others.length > 2 ? "others" : "other"}
|
||||
<Button on:click={showMembers} class="btn btn-link">
|
||||
Show all members
|
||||
</Button>
|
||||
<Button on:click={showMembers} class="btn btn-link">Show all members</Button>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div slot="action">
|
||||
{#if remove($pubkey, $missingInboxes).length > 0}
|
||||
{@const count = remove($pubkey, $missingInboxes).length}
|
||||
{@const label = count > 0 ? 'inboxes are' : 'inbox is'}
|
||||
{@const label = count > 1 ? "inboxes are" : "inbox is"}
|
||||
<div
|
||||
class="row-2 badge badge-error badge-lg tooltip tooltip-left cursor-pointer"
|
||||
data-tip="{count} {label} not configured.">
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<input bind:value={term} class="grow" type="text" placeholder="Search for conversations..." />
|
||||
</label>
|
||||
<div class="column gap-2 overflow-auto">
|
||||
{#each chats as {id, pubkeys, messages} (id)}
|
||||
{#each chats as { id, pubkeys, messages } (id)}
|
||||
<ChatItem {id} {pubkeys} {messages} />
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
const defaultPubkeys = uniq([
|
||||
...shuffle(getPubkeyTagValues(getListTags($userFollows))),
|
||||
...import.meta.env.VITE_DEFAULT_PUBKEYS.split(','),
|
||||
...import.meta.env.VITE_DEFAULT_PUBKEYS.split(","),
|
||||
])
|
||||
|
||||
let term = ""
|
||||
|
||||
Reference in New Issue
Block a user