Move space add buttons around

This commit is contained in:
Jon Staab
2024-10-15 12:02:11 -07:00
parent 4e83e59249
commit c9826449f2
27 changed files with 82 additions and 74 deletions
+1 -1
View File
@@ -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>
+3 -5
View File
@@ -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.">
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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 = ""