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} />
{/if}
{/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}>
{#if loading}
Looking for messages...

View File

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

View File

@@ -1,6 +1,6 @@
<script lang="ts">
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"
$: id = $pubkey!
@@ -9,8 +9,8 @@
<Page>
<Chat {id}>
<p slot="info">
This is a place for your notes. Everything you write here is encrypted
and stored on the nostr network.
This is a place for your notes. Everything you write here is encrypted and stored on the nostr
network.
</p>
</Chat>
</Page>

View File

@@ -56,14 +56,14 @@
{/if}
{#each sortBy(e => -e.created_at, $replies) as reply (reply.id)}
<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} />
<ThreadActions event={reply} {url} />
</div>
</NoteCard>
{/each}
<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} />
<ThreadActions event={$event} {url} />
</div>