This commit is contained in:
Jon Staab
2024-10-24 17:25:52 -07:00
parent 447e2e4d93
commit f92af32a0b
4 changed files with 8 additions and 7 deletions

View File

@@ -161,7 +161,8 @@
<ChatMessage {event} {thunk} {pubkeys} {showPubkey} /> <ChatMessage {event} {thunk} {pubkeys} {showPubkey} />
{/if} {/if}
{/each} {/each}
<p class="flex flex-col gap-4 max-w-sm m-auto text-center h-10 items-center justify-center py-20"> <p
class="m-auto flex h-10 max-w-sm flex-col items-center justify-center gap-4 py-20 text-center">
<Spinner {loading}> <Spinner {loading}>
{#if loading} {#if loading}
Looking for messages... Looking for messages...

View File

@@ -28,7 +28,7 @@
$: failure = Object.entries($status).find(([url, s]) => [Failure, Timeout].includes(s.status)) $: failure = Object.entries($status).find(([url, s]) => [Failure, Timeout].includes(s.status))
</script> </script>
<div class="flex justify-end text-xs px-1"> <div class="flex justify-end px-1 text-xs">
{#if canCancel || isPending} {#if canCancel || isPending}
<span class="mt-2 flex items-center gap-1"> <span class="mt-2 flex items-center gap-1">
<span class="loading loading-spinner mx-1 h-3 w-3 translate-y-px" /> <span class="loading loading-spinner mx-1 h-3 w-3 translate-y-px" />

View File

@@ -1,6 +1,6 @@
<script lang="ts"> <script lang="ts">
import {pubkey} from "@welshman/app" import {pubkey} from "@welshman/app"
import Page from '@lib/components/Page.svelte' import Page from "@lib/components/Page.svelte"
import Chat from "@app/components/Chat.svelte" import Chat from "@app/components/Chat.svelte"
$: id = $pubkey! $: id = $pubkey!
@@ -9,8 +9,8 @@
<Page> <Page>
<Chat {id}> <Chat {id}>
<p slot="info"> <p slot="info">
This is a place for your notes. Everything you write here is encrypted This is a place for your notes. Everything you write here is encrypted and stored on the nostr
and stored on the nostr network. network.
</p> </p>
</Chat> </Chat>
</Page> </Page>

View File

@@ -56,14 +56,14 @@
{/if} {/if}
{#each sortBy(e => -e.created_at, $replies) as reply (reply.id)} {#each sortBy(e => -e.created_at, $replies) as reply (reply.id)}
<NoteCard event={reply} class="card2 bg-alt z-feature w-full"> <NoteCard event={reply} class="card2 bg-alt z-feature w-full">
<div class="ml-12 col-3"> <div class="col-3 ml-12">
<Content event={reply} /> <Content event={reply} />
<ThreadActions event={reply} {url} /> <ThreadActions event={reply} {url} />
</div> </div>
</NoteCard> </NoteCard>
{/each} {/each}
<NoteCard event={$event} class="card2 bg-alt z-feature w-full"> <NoteCard event={$event} class="card2 bg-alt z-feature w-full">
<div class="ml-12 col-3"> <div class="col-3 ml-12">
<Content event={$event} /> <Content event={$event} />
<ThreadActions event={$event} {url} /> <ThreadActions event={$event} {url} />
</div> </div>