diff --git a/src/app/components/ChatStart.svelte b/src/app/components/ChatStart.svelte index 80246cef..81ad6d63 100644 --- a/src/app/components/ChatStart.svelte +++ b/src/app/components/ChatStart.svelte @@ -1,5 +1,6 @@ diff --git a/src/app/modal.ts b/src/app/modal.ts index d4160659..51c6b86d 100644 --- a/src/app/modal.ts +++ b/src/app/modal.ts @@ -17,9 +17,9 @@ export const pushModal = ( ) => { const id = randomId() - // TODO: fix memory leak here by listening to history somehow modals.set(id, {component, props, options}) - goto("#" + id) + + setTimeout(() => goto("#" + id)) return id } diff --git a/src/lib/components/Link.svelte b/src/lib/components/Link.svelte index 36c76d54..d5c7db9f 100644 --- a/src/lib/components/Link.svelte +++ b/src/lib/components/Link.svelte @@ -1,15 +1,17 @@ diff --git a/src/routes/home/[chat]/+page.svelte b/src/routes/home/[chat]/+page.svelte index 7dd8c51e..d060d265 100644 --- a/src/routes/home/[chat]/+page.svelte +++ b/src/routes/home/[chat]/+page.svelte @@ -113,15 +113,14 @@ {/if}
- {#if $missingInboxes.length > 0} - {@const plural = $missingInboxes.length > 0} + {#if remove($pubkey, $missingInboxes).length > 0} + {@const count = remove($pubkey, $missingInboxes).length} + {@const label = count > 0 ? 'inboxes are' : 'inbox is'}
+ data-tip="{count} {label} not configured."> - {$missingInboxes.length} + {count}
{/if}
diff --git a/src/routes/home/network/+page.svelte b/src/routes/home/network/+page.svelte index 87a1fc90..a5d5d677 100644 --- a/src/routes/home/network/+page.svelte +++ b/src/routes/home/network/+page.svelte @@ -13,6 +13,8 @@ import type {TrustedEvent} from "@welshman/util" import {deriveEvents} from "@welshman/store" import {repository, userFollows, load} from "@welshman/app" + import Link from "@lib/components/Link.svelte" + import Icon from "@lib/components/Icon.svelte" import Spinner from "@lib/components/Spinner.svelte" import NoteCard from "@app/components/NoteCard.svelte" import Content from "@app/components/Content.svelte" @@ -85,6 +87,14 @@ + {:else} +
+

No activity found! Try following a few more people.

+ + + Browse Profiles + +
{/each} {/await} diff --git a/src/routes/home/people/+page.svelte b/src/routes/home/people/+page.svelte index e8b4d0e8..cdf6f53c 100644 --- a/src/routes/home/people/+page.svelte +++ b/src/routes/home/people/+page.svelte @@ -1,14 +1,17 @@