diff --git a/src/lib/components/ui/navbar/Navbar.svelte b/src/lib/components/ui/navbar/Navbar.svelte index 098e4883..787e616d 100644 --- a/src/lib/components/ui/navbar/Navbar.svelte +++ b/src/lib/components/ui/navbar/Navbar.svelte @@ -61,7 +61,7 @@ }} href="/" label={$t('nav.home')} - class="ml-2 lg:ml-2 logo border-0 lg:rounded-full! lg:w-10! lg:h-10 lg:px-0!" + class="ml-2 lg:ml-2 logo border-0 lg:rounded-full! lg:w-10! lg:h-10 lg:px-0! text-primary-900! dark:text-primary-100!" adaptive={false} > {#snippet customIcon()} diff --git a/src/lib/components/ui/sidebar/ProfileSelection.svelte b/src/lib/components/ui/sidebar/ProfileSelection.svelte index 3f7d7a5a..9929d9c9 100644 --- a/src/lib/components/ui/sidebar/ProfileSelection.svelte +++ b/src/lib/components/ui/sidebar/ProfileSelection.svelte @@ -8,11 +8,13 @@ UserGroup, } from 'svelte-hero-icons' import Avatar from '../Avatar.svelte' - import { profile } from '$lib/auth.svelte' + import { profile, type ProfileInfo } from '$lib/auth.svelte' import { goto } from '$app/navigation' import { page } from '$app/state' import { t } from '$lib/i18n/translations' + let { profiles }: { profiles: ProfileInfo[] } = $props() + function switchTo(id: number) { profile.meta.profile = id @@ -54,7 +56,7 @@ {/snippet} {/snippet} - {#each profile.meta.profiles as p} + {#each profiles as p} {@const selected = profile.meta.profile == p.id} switchTo(p.id)} diff --git a/src/lib/components/ui/sidebar/Sidebar.svelte b/src/lib/components/ui/sidebar/Sidebar.svelte index d251df8a..e40bc30d 100644 --- a/src/lib/components/ui/sidebar/Sidebar.svelte +++ b/src/lib/components/ui/sidebar/Sidebar.svelte @@ -36,7 +36,7 @@