Fix space switcher in platform mode, move favicon link
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href={import.meta.env.PLATFORM_LOGO} />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
%sveltekit.head%
|
%sveltekit.head%
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
import RelayDescription from "@app/components/RelayDescription.svelte"
|
import RelayDescription from "@app/components/RelayDescription.svelte"
|
||||||
import SpaceCreateExternal from "@app/components/SpaceCreateExternal.svelte"
|
import SpaceCreateExternal from "@app/components/SpaceCreateExternal.svelte"
|
||||||
import SpaceInviteAccept from "@app/components/SpaceInviteAccept.svelte"
|
import SpaceInviteAccept from "@app/components/SpaceInviteAccept.svelte"
|
||||||
import {userMembership, getMembershipUrls} from "@app/state"
|
import {userMembership, getMembershipUrls, PLATFORM_RELAY} from "@app/state"
|
||||||
import {makeSpacePath} from "@app/routes"
|
import {makeSpacePath} from "@app/routes"
|
||||||
import {pushModal} from "@app/modal"
|
import {pushModal} from "@app/modal"
|
||||||
|
|
||||||
@@ -19,17 +19,28 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="column menu gap-2">
|
<div class="column menu gap-2">
|
||||||
{#each getMembershipUrls($userMembership) as url (url)}
|
{#if PLATFORM_RELAY}
|
||||||
<Link href={makeSpacePath(url)}>
|
<Link href={makeSpacePath(PLATFORM_RELAY)}>
|
||||||
<CardButton>
|
<CardButton>
|
||||||
<div slot="icon"><SpaceAvatar {url} /></div>
|
<div slot="icon"><SpaceAvatar url={PLATFORM_RELAY} /></div>
|
||||||
<div slot="title"><RelayName {url} /></div>
|
<div slot="title"><RelayName url={PLATFORM_RELAY} /></div>
|
||||||
<div slot="info"><RelayDescription {url} /></div>
|
<div slot="info"><RelayDescription url={PLATFORM_RELAY} /></div>
|
||||||
</CardButton>
|
</CardButton>
|
||||||
</Link>
|
</Link>
|
||||||
{/each}
|
|
||||||
{#if getMembershipUrls($userMembership).length > 0}
|
|
||||||
<Divider />
|
<Divider />
|
||||||
|
{:else}
|
||||||
|
{#each getMembershipUrls($userMembership) as url (url)}
|
||||||
|
<Link href={makeSpacePath(url)}>
|
||||||
|
<CardButton>
|
||||||
|
<div slot="icon"><SpaceAvatar {url} /></div>
|
||||||
|
<div slot="title"><RelayName {url} /></div>
|
||||||
|
<div slot="info"><RelayDescription {url} /></div>
|
||||||
|
</CardButton>
|
||||||
|
</Link>
|
||||||
|
{/each}
|
||||||
|
{#if getMembershipUrls($userMembership).length > 0}
|
||||||
|
<Divider />
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
<Button on:click={startJoin}>
|
<Button on:click={startJoin}>
|
||||||
<CardButton>
|
<CardButton>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
import AppContainer from "@app/components/AppContainer.svelte"
|
import AppContainer from "@app/components/AppContainer.svelte"
|
||||||
import ModalContainer from "@app/components/ModalContainer.svelte"
|
import ModalContainer from "@app/components/ModalContainer.svelte"
|
||||||
import {theme} from "@app/theme"
|
import {theme} from "@app/theme"
|
||||||
import {INDEXER_RELAYS} from "@app/state"
|
import {INDEXER_RELAYS, PLATFORM_LOGO} from "@app/state"
|
||||||
import {loadUserData} from "@app/commands"
|
import {loadUserData} from "@app/commands"
|
||||||
import * as state from "@app/state"
|
import * as state from "@app/state"
|
||||||
|
|
||||||
@@ -133,6 +133,10 @@
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<link rel="icon" href={PLATFORM_LOGO} />
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
{#await ready}
|
{#await ready}
|
||||||
<div data-theme={$theme} />
|
<div data-theme={$theme} />
|
||||||
{:then}
|
{:then}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {onMount} from 'svelte'
|
import {onMount} from "svelte"
|
||||||
import {goto} from "$app/navigation"
|
import {goto} from "$app/navigation"
|
||||||
import Icon from "@lib/components/Icon.svelte"
|
import Icon from "@lib/components/Icon.svelte"
|
||||||
import Link from "@lib/components/Link.svelte"
|
import Link from "@lib/components/Link.svelte"
|
||||||
|
|||||||
Reference in New Issue
Block a user