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="/"
|
href="/"
|
||||||
label={$t('nav.home')}
|
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}
|
adaptive={false}
|
||||||
>
|
>
|
||||||
{#snippet customIcon()}
|
{#snippet customIcon()}
|
||||||
|
|||||||
@@ -8,11 +8,13 @@
|
|||||||
UserGroup,
|
UserGroup,
|
||||||
} from 'svelte-hero-icons'
|
} from 'svelte-hero-icons'
|
||||||
import Avatar from '../Avatar.svelte'
|
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 { goto } from '$app/navigation'
|
||||||
import { page } from '$app/state'
|
import { page } from '$app/state'
|
||||||
import { t } from '$lib/i18n/translations'
|
import { t } from '$lib/i18n/translations'
|
||||||
|
|
||||||
|
let { profiles }: { profiles: ProfileInfo[] } = $props()
|
||||||
|
|
||||||
function switchTo(id: number) {
|
function switchTo(id: number) {
|
||||||
profile.meta.profile = id
|
profile.meta.profile = id
|
||||||
|
|
||||||
@@ -54,7 +56,7 @@
|
|||||||
{/snippet}
|
{/snippet}
|
||||||
</Button>
|
</Button>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
{#each profile.meta.profiles as p}
|
{#each profiles as p}
|
||||||
{@const selected = profile.meta.profile == p.id}
|
{@const selected = profile.meta.profile == p.id}
|
||||||
<MenuButton
|
<MenuButton
|
||||||
onclick={() => switchTo(p.id)}
|
onclick={() => switchTo(p.id)}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<nav class={['flex flex-col overflow-auto gap-1', clazz]} {style}>
|
<nav class={['flex flex-col overflow-auto gap-1', clazz]} {style}>
|
||||||
<ProfileSelection />
|
<ProfileSelection profiles={profile.meta.profiles} />
|
||||||
<EndPlaceholder size="xs">{$t('profile.profile')}</EndPlaceholder>
|
<EndPlaceholder size="xs">{$t('profile.profile')}</EndPlaceholder>
|
||||||
{#if profile.current?.jwt}
|
{#if profile.current?.jwt}
|
||||||
<SidebarButton
|
<SidebarButton
|
||||||
|
|||||||
Reference in new issue
Block a user