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
+9 -1
View File
@@ -1,8 +1,16 @@
<script lang="ts">
import {pubkey} from "@welshman/app"
import Page from '@lib/components/Page.svelte'
import Chat from "@app/components/Chat.svelte"
$: id = $pubkey!
</script>
<Chat {id} />
<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.
</p>
</Chat>
</Page>
-1
View File
@@ -17,7 +17,6 @@
$: pubkeys = term ? $profileSearch.searchValues(term) : defaultPubkeys
onMount(() => {
console.log(element)
const scroller = createScroller({
element,
onScroll: () => {
@@ -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)}