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
+9 -8

No files matched your search

@@ -3,6 +3,7 @@
import { page } from '$app/stores' import { page } from '$app/stores'
import { profile, setUserID, type Profile } from '$lib/auth.js' import { profile, setUserID, type Profile } from '$lib/auth.js'
import SidebarButton from '$lib/components/ui/sidebar/SidebarButton.svelte' import SidebarButton from '$lib/components/ui/sidebar/SidebarButton.svelte'
import { LINKED_INSTANCE_URL } from '$lib/instance'
import ProfileAvatar from '$lib/lemmy/ProfileAvatar.svelte' import ProfileAvatar from '$lib/lemmy/ProfileAvatar.svelte'
import { Button } from 'mono-svelte' import { Button } from 'mono-svelte'
import { Icon, QuestionMarkCircle } from 'svelte-hero-icons' import { Icon, QuestionMarkCircle } from 'svelte-hero-icons'
@@ -52,7 +53,7 @@
: ''}" : ''}"
> >
{prof.username ?? prof.user?.local_user_view.person.name} {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"> <span class="text-slate-500 dark:text-zinc-400 font-normal text-xs">
{prof.instance} {prof.instance}
</span> </span>
+4 -6
View File
@@ -74,16 +74,14 @@
> >
<span slot="label">{$t('account.signup')}</span> <span slot="label">{$t('account.signup')}</span>
</SidebarButton> </SidebarButton>
{#if LINKED_INSTANCE_URL === undefined}
<SidebarButton <SidebarButton
href="/accounts" href="/settings"
title={$t('account.changeinstance')} title={$t('nav.menu.settings')}
icon={ServerStack} icon={Cog6Tooth}
> >
<span slot="label">{$t('account.changeinstance')}</span> <span slot="label">{$t('nav.menu.settings')}</span>
</SidebarButton> </SidebarButton>
{/if} {/if}
{/if}
{#if $profileData.profiles.length >= 1} {#if $profileData.profiles.length >= 1}
<hr class="border-slate-200 dark:border-zinc-900 my-1" /> <hr class="border-slate-200 dark:border-zinc-900 my-1" />
{#each [...$profileData.profiles] as prof, index (prof.id)} {#each [...$profileData.profiles] as prof, index (prof.id)}
+3 -1
View File
@@ -250,14 +250,16 @@
</EditableList> </EditableList>
<div class="mt-auto" /> <div class="mt-auto" />
<div class="flex items-center gap-2"> <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 /> <Icon slot="prefix" src={ArrowLeftOnRectangle} size="16" mini />
{$t('account.login')} {$t('account.login')}
</Button> </Button>
{#if !LINKED_INSTANCE_URL}
<Button href="/login/guest" size="lg"> <Button href="/login/guest" size="lg">
<Icon slot="prefix" src={Plus} size="16" mini /> <Icon slot="prefix" src={Plus} size="16" mini />
{$t('account.addGuest')} {$t('account.addGuest')}
</Button> </Button>
{/if}
</div> </div>
</div> </div>
{/if} {/if}