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
@@ -52,7 +52,7 @@
const onSubmit = ({content, tags}: EventContent) => {
const event = createEvent(MESSAGE, {content, tags: append(tagRoom(room, url), tags)})
const thunk = publishThunk({event, relays: [url], delay: 2000})
const thunk = publishThunk({event, relays: [url], delay: 3000})
thunks.update(assoc(thunk.event.id, thunk))
}
@@ -56,17 +56,17 @@
{/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">
<div class="ml-12 col-3">
<Content event={reply} />
<ThreadActions event={reply} {url} />
</div>
<ThreadActions event={reply} {url} />
</NoteCard>
{/each}
<NoteCard event={$event} class="card2 bg-alt z-feature w-full">
<div class="ml-12">
<div class="ml-12 col-3">
<Content event={$event} />
<ThreadActions event={$event} {url} />
</div>
<ThreadActions event={$event} {url} />
</NoteCard>
{:else}
{#await sleep(5000)}