From 9f6b95cc3a7153b0313020d2bfa2c4b7ba26e726 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 20 Dec 2025 01:07:02 -0800 Subject: [PATCH] reorder nav overflow menu, add separators --- src/lib/components/Navigation.svelte | 36 ++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/src/lib/components/Navigation.svelte b/src/lib/components/Navigation.svelte index 7665353a..ba978190 100644 --- a/src/lib/components/Navigation.svelte +++ b/src/lib/components/Navigation.svelte @@ -67,6 +67,8 @@ const databaseSeriesHref = $derived(localizeHref('/database/series')) const databaseGwEventsHref = $derived(localizeHref('/database/gw-events')) const databaseArtifactSkillsHref = $derived(localizeHref('/database/artifact-skills')) + const databaseRaidsHref = $derived(localizeHref('/database/raids')) + const databaseRaidGroupsHref = $derived(localizeHref('/database/raid-groups')) // Database route detection const isDatabaseRoute = $derived($page.url.pathname.startsWith(localizeHref('/database'))) @@ -77,6 +79,7 @@ if (path.startsWith(databaseCharactersHref)) return 'character' if (path.startsWith(databaseWeaponsHref)) return 'weapon' if (path.startsWith(databaseSummonsHref)) return 'summon' + if (path.startsWith(databaseRaidsHref) || path.startsWith(databaseRaidGroupsHref)) return 'raid' return null }) @@ -88,7 +91,9 @@ ? 'weapon' : currentDatabaseEntity === 'summon' ? 'summon' - : null + : currentDatabaseEntity === 'raid' + ? 'raid' + : null ) const databaseNewHref = $derived( currentDatabaseEntity === 'character' @@ -243,14 +248,16 @@ Jobs - Series - - - Unite & Fight + Raids + Artifact Skills + + + Unite & Fight + @@ -364,15 +371,24 @@ - {#if databaseNewHref} + {#if currentDatabaseEntity === 'raid'} - Single {databaseEntityLabel} + New raid - {/if} - {#if databaseImportHref} - Multiple {databaseEntityLabel}s + New raid group + {:else} + {#if databaseNewHref} + + Single {databaseEntityLabel} + + {/if} + {#if databaseImportHref} + + Multiple {databaseEntityLabel}s + + {/if} {/if}