diff --git a/src/lib/components/ui/sidebar/ProfileSelection.svelte b/src/lib/components/ui/sidebar/ProfileSelection.svelte index 3770737b..e76cf09a 100644 --- a/src/lib/components/ui/sidebar/ProfileSelection.svelte +++ b/src/lib/components/ui/sidebar/ProfileSelection.svelte @@ -13,6 +13,7 @@ import { page } from '$app/state' import { t } from '$lib/i18n/translations' import { DEFAULT_CLIENT_TYPE } from '$lib/client/base' + import { LINKED_INSTANCE_URL } from '$lib/instance.svelte' let { profiles }: { profiles: ProfileInfo[] } = $props() @@ -45,9 +46,11 @@ {/snippet}
{profile.current.username}
-
- {profile.current.client?.name ?? DEFAULT_CLIENT_TYPE.name} • {profile.current.instance} -
+ {#if !LINKED_INSTANCE_URL} +
+ {profile.current.client?.name ?? DEFAULT_CLIENT_TYPE.name} • {profile.current.instance} +
+ {/if}
{#snippet suffix()}
{p.username}
-
- {p.client?.name ?? DEFAULT_CLIENT_TYPE.name} • {p.instance} -
+ {#if !LINKED_INSTANCE_URL} +
+ {p.client?.name ?? DEFAULT_CLIENT_TYPE.name} • {p.instance} +
+ {/if}
{#if !p.jwt}