misc: remove redundant instance marker
This commit is contained in:
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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -250,14 +250,16 @@
|
||||
</EditableList>
|
||||
<div class="mt-auto" />
|
||||
<div class="flex items-center gap-2">
|
||||
<Button href="/login" size="lg" class="flex-1">
|
||||
<Button href="/login" size="lg" class="flex-1" color="primary">
|
||||
<Icon slot="prefix" src={ArrowLeftOnRectangle} size="16" mini />
|
||||
{$t('account.login')}
|
||||
</Button>
|
||||
<Button href="/login/guest" size="lg">
|
||||
<Icon slot="prefix" src={Plus} size="16" mini />
|
||||
{$t('account.addGuest')}
|
||||
</Button>
|
||||
{#if !LINKED_INSTANCE_URL}
|
||||
<Button href="/login/guest" size="lg">
|
||||
<Icon slot="prefix" src={Plus} size="16" mini />
|
||||
{$t('account.addGuest')}
|
||||
</Button>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
Reference in new issue
Block a user