forked from coracle/flotilla
Make white labeled nav look less bad
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
class="ml-sai mt-sai mb-sai relative z-nav hidden w-14 flex-shrink-0 bg-base-200 pt-4 md:block">
|
class="ml-sai mt-sai mb-sai relative z-nav hidden w-14 flex-shrink-0 bg-base-200 pt-4 md:block">
|
||||||
<div class="flex h-full flex-col justify-between">
|
<div class="flex h-full flex-col" class:justify-between={PLATFORM_RELAYS.length === 0}>
|
||||||
<div>
|
<div>
|
||||||
{#each PLATFORM_RELAYS as url (url)}
|
{#each PLATFORM_RELAYS as url (url)}
|
||||||
<PrimaryNavItemSpace {url} />
|
<PrimaryNavItemSpace {url} />
|
||||||
@@ -81,6 +81,9 @@
|
|||||||
</PrimaryNavItem>
|
</PrimaryNavItem>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
{#if PLATFORM_RELAYS.length > 0}
|
||||||
|
<Divider />
|
||||||
|
{/if}
|
||||||
<div>
|
<div>
|
||||||
<PrimaryNavItem
|
<PrimaryNavItem
|
||||||
title="Settings"
|
title="Settings"
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
<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 {makeSpacePath} from "@app/util/routes"
|
||||||
|
import {PLATFORM_RELAYS} from "@app/core/state"
|
||||||
|
|
||||||
onMount(() => goto("/home"))
|
onMount(() => {
|
||||||
|
if (PLATFORM_RELAYS.length > 0) {
|
||||||
|
goto(makeSpacePath(PLATFORM_RELAYS[0]))
|
||||||
|
} else {
|
||||||
|
goto("/home")
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user