design: use primary color for photon logo
This commit is contained in:
3 files changed
+6
-4
No files matched your search
@@ -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()}
|
||||
|
||||
@@ -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}
|
||||
</Button>
|
||||
{/snippet}
|
||||
{#each profile.meta.profiles as p}
|
||||
{#each profiles as p}
|
||||
{@const selected = profile.meta.profile == p.id}
|
||||
<MenuButton
|
||||
onclick={() => switchTo(p.id)}
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
</script>
|
||||
|
||||
<nav class={['flex flex-col overflow-auto gap-1', clazz]} {style}>
|
||||
<ProfileSelection />
|
||||
<ProfileSelection profiles={profile.meta.profiles} />
|
||||
<EndPlaceholder size="xs">{$t('profile.profile')}</EndPlaceholder>
|
||||
{#if profile.current?.jwt}
|
||||
<SidebarButton
|
||||
|
||||
Reference in new issue
Block a user