diff --git a/src/app.css b/src/app.css index fe6bdba1..662a076a 100644 --- a/src/app.css +++ b/src/app.css @@ -417,6 +417,10 @@ progress[value]::-webkit-progress-value { @apply md:left-[calc(18.5rem+var(--sail))]; } +.left-content-full { + @apply md:left-[calc(3.5rem+var(--sail))]; +} + /* Keyboard open state adjustments */ body.keyboard-open .hide-on-keyboard { diff --git a/src/routes/spaces/+page.svelte b/src/routes/spaces/+page.svelte index 3f91c385..0f0804c7 100644 --- a/src/routes/spaces/+page.svelte +++ b/src/routes/spaces/+page.svelte @@ -5,8 +5,9 @@ import {derived as _derived} from "svelte/store" import {dec, insertAt, removeAt, sleep} from "@welshman/lib" import type {RelayProfile} from "@welshman/util" + import {ROOMS} from "@welshman/util" import {throttled} from "@welshman/store" - import {relays, createSearch} from "@welshman/app" + import {pull, relays, createSearch} from "@welshman/app" import {createScroller} from "@lib/html" import {fly} from "@lib/transition" import DragHandle from "@assets/icons/drag-handle.svg?dataurl" @@ -29,7 +30,9 @@ userSpaceUrls, loadUserGroupList, PLATFORM_RELAYS, + DEFAULT_RELAYS, groupListPubkeysByUrl, + bootstrapPubkeys, parseInviteLink, } from "@app/core/state" import {setSpaceMembershipOrder} from "@app/core/commands" @@ -197,6 +200,11 @@ }, }) + pull({ + filters: [{kinds: [ROOMS], authors: $bootstrapPubkeys}], + relays: DEFAULT_RELAYS, + }) + return () => { scroller.stop() } @@ -205,41 +213,46 @@ - {#if showSearch} - - {:else} -
-
- - Spaces -
-
- - {#if PLATFORM_RELAYS.length === 0} - - {/if} -
+
+
+ + Spaces
- {/if} +
+ + {#if showSearch} + +
+
+ +
+
+ {/if} + {#if PLATFORM_RELAYS.length === 0} + + {/if} +
+