A few ui tweaks

This commit is contained in:
Jon Staab
2024-10-24 17:25:28 -07:00
parent 1200f29422
commit 447e2e4d93
15 changed files with 64 additions and 49 deletions
+3 -2
View File
@@ -57,7 +57,7 @@
const onSubmit = async ({content, ...params}: EventContent) => {
const tags = [...params.tags, ...remove($pubkey!, pubkeys).map(tagPubkey)]
const template = createEvent(DIRECT_MESSAGE, {content, tags})
const thunk = await sendWrapped({template, pubkeys, delay: 2000})
const thunk = await sendWrapped({template, pubkeys, delay: 3000})
thunks.update(assoc(thunk.thunks[0].event.id, thunk))
}
@@ -161,7 +161,7 @@
<ChatMessage {event} {thunk} {pubkeys} {showPubkey} />
{/if}
{/each}
<p class="flex h-10 items-center justify-center py-20">
<p class="flex flex-col gap-4 max-w-sm m-auto text-center h-10 items-center justify-center py-20">
<Spinner {loading}>
{#if loading}
Looking for messages...
@@ -169,6 +169,7 @@
End of message history
{/if}
</Spinner>
<slot name="info" />
</p>
</div>
<ChatCompose {onSubmit} />