misc: remove redundant instance marker

This commit is contained in:
Xylight committed 2024-06-13 15:55:43 -07:00
1 parent f47aa55365
commit eed5cd277f
3 files changed
+16 -15

No files matched your search

@@ -3,6 +3,7 @@
import { page } from '$app/stores'
import { profile, setUserID, type Profile } from '$lib/auth.js'
import SidebarButton from '$lib/components/ui/sidebar/SidebarButton.svelte'
import { LINKED_INSTANCE_URL } from '$lib/instance'
import ProfileAvatar from '$lib/lemmy/ProfileAvatar.svelte'
import { Button } from 'mono-svelte'
import { Icon, QuestionMarkCircle } from 'svelte-hero-icons'
@@ -52,7 +53,7 @@
: ''}"
>
{prof.username ?? prof.user?.local_user_view.person.name}
{#if !guest}
{#if !guest && !LINKED_INSTANCE_URL}
<span class="text-slate-500 dark:text-zinc-400 font-normal text-xs">
{prof.instance}
</span>
+7 -9
View File
@@ -74,15 +74,13 @@
>
<span slot="label">{$t('account.signup')}</span>
</SidebarButton>
{#if LINKED_INSTANCE_URL === undefined}
<SidebarButton
href="/accounts"
title={$t('account.changeinstance')}
icon={ServerStack}
>
<span slot="label">{$t('account.changeinstance')}</span>
</SidebarButton>
{/if}
<SidebarButton
href="/settings"
title={$t('nav.menu.settings')}
icon={Cog6Tooth}
>
<span slot="label">{$t('nav.menu.settings')}</span>
</SidebarButton>
{/if}
{#if $profileData.profiles.length >= 1}
<hr class="border-slate-200 dark:border-zinc-900 my-1" />