Make white labeled nav look less bad

This commit is contained in:
Jon Staab
2025-09-05 16:21:17 -07:00
parent e8f785b558
commit 1c37c5bb3d
2 changed files with 13 additions and 2 deletions
+4 -1
View File
@@ -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"
+9 -1
View File
@@ -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>