1 parent
7cb7b80060
commit
d305718a1c
1 file changed
+33
-45
@@ -116,7 +116,7 @@
|
|||||||
<Button
|
<Button
|
||||||
href="/admin"
|
href="/admin"
|
||||||
aria-label="Admin"
|
aria-label="Admin"
|
||||||
class="max-md:w-8 max-md:h-8 max-md:!p-0 dark:text-zinc-300 text-slate-700 relative"
|
class="max-md:w-9 max-md:h-8 max-md:!p-0 dark:text-zinc-300 text-slate-700 relative"
|
||||||
>
|
>
|
||||||
<Icon src={ServerStack} mini size="18" slot="prefix" />
|
<Icon src={ServerStack} mini size="18" slot="prefix" />
|
||||||
<span class="hidden md:inline">Admin</span>
|
<span class="hidden md:inline">Admin</span>
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
<Button
|
<Button
|
||||||
href="/moderation"
|
href="/moderation"
|
||||||
aria-label="Moderation"
|
aria-label="Moderation"
|
||||||
class="max-md:w-8 max-md:h-8 max-md:!p-0 dark:text-zinc-300 text-slate-700 relative"
|
class="max-md:w-9 max-md:h-8 max-md:!p-0 dark:text-zinc-300 text-slate-700 relative"
|
||||||
>
|
>
|
||||||
{#if ($profile?.user?.notifications.reports ?? 0) > 0}
|
{#if ($profile?.user?.notifications.reports ?? 0) > 0}
|
||||||
<div
|
<div
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
<Button
|
<Button
|
||||||
href="/search"
|
href="/search"
|
||||||
aria-label="Search"
|
aria-label="Search"
|
||||||
class="max-md:w-8 max-md:h-8 max-md:!p-0"
|
class="max-md:w-9 max-md:h-8 max-md:!p-0"
|
||||||
>
|
>
|
||||||
<Icon mini src={MagnifyingGlass} width={16} slot="prefix" />
|
<Icon mini src={MagnifyingGlass} width={16} slot="prefix" />
|
||||||
<span class="hidden md:inline">Search</span>
|
<span class="hidden md:inline">Search</span>
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
<Button
|
<Button
|
||||||
href="/communities"
|
href="/communities"
|
||||||
aria-label="Communities"
|
aria-label="Communities"
|
||||||
class="max-md:w-8 max-md:h-8 max-md:!p-0"
|
class="max-md:w-9 max-md:h-8 max-md:!p-0"
|
||||||
>
|
>
|
||||||
<Icon mini src={GlobeAlt} size="16" slot="prefix" />
|
<Icon mini src={GlobeAlt} size="16" slot="prefix" />
|
||||||
<span class="hidden md:inline">Explore</span>
|
<span class="hidden md:inline">Explore</span>
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
color="primary"
|
color="primary"
|
||||||
slot="target"
|
slot="target"
|
||||||
aria-label="Create"
|
aria-label="Create"
|
||||||
class="max-md:w-8 max-md:h-8 max-md:!p-0"
|
class="max-md:w-9 max-md:h-8 max-md:!p-0"
|
||||||
>
|
>
|
||||||
<Icon src={Plus} width={18} mini slot="prefix" />
|
<Icon src={Plus} width={18} mini slot="prefix" />
|
||||||
<span class="hidden md:inline">Create</span>
|
<span class="hidden md:inline">Create</span>
|
||||||
@@ -203,7 +203,7 @@
|
|||||||
containerClass="!max-h-[28rem] z-10"
|
containerClass="!max-h-[28rem] z-10"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class="w-8 h-8 rounded-full ring-1 ring-slate-300 dark:ring-zinc-600 bg-slate-100
|
class="w-8 h-8 rounded-full ring-1 ring-slate-300 bg-slate-100
|
||||||
dark:bg-zinc-800 relative"
|
dark:bg-zinc-800 relative"
|
||||||
aria-label="Profile"
|
aria-label="Profile"
|
||||||
slot="target"
|
slot="target"
|
||||||
@@ -229,18 +229,16 @@
|
|||||||
</button>
|
</button>
|
||||||
{#if $profile?.user}
|
{#if $profile?.user}
|
||||||
<div class="flex flex-row gap-2 items-center py-2 mx-4 font-medium">
|
<div class="flex flex-row gap-2 items-center py-2 mx-4 font-medium">
|
||||||
<Avatar
|
<Avatar width={22} url={$profile?.user?.local_user_view.person.avatar} alt={$profile?.username} />
|
||||||
width={22}
|
|
||||||
url={$profile?.user?.local_user_view.person.avatar}
|
|
||||||
alt={$profile?.username}
|
|
||||||
/>
|
|
||||||
{$profile?.user?.local_user_view?.person.name}
|
{$profile?.user?.local_user_view?.person.name}
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<MenuDivider>Profile</MenuDivider>
|
<MenuDivider>
|
||||||
|
Profile
|
||||||
|
</MenuDivider>
|
||||||
{/if}
|
{/if}
|
||||||
{#if $profile?.user}
|
{#if $profile?.user}
|
||||||
<MenuButton link href="/profile">
|
<MenuButton link href="/profile">
|
||||||
<Icon src={UserCircle} mini width={16} /> Profile
|
<Icon src={UserCircle} mini width={16} /> Profile
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
<MenuButton link href="/inbox">
|
<MenuButton link href="/inbox">
|
||||||
@@ -271,10 +269,10 @@
|
|||||||
src={$theme == 'system'
|
src={$theme == 'system'
|
||||||
? ComputerDesktop
|
? ComputerDesktop
|
||||||
: $theme == 'light'
|
: $theme == 'light'
|
||||||
? Sun
|
? Sun
|
||||||
: $theme == 'dark'
|
: $theme == 'dark'
|
||||||
? Moon
|
? Moon
|
||||||
: Moon}
|
: Moon}
|
||||||
mini
|
mini
|
||||||
size="16"
|
size="16"
|
||||||
/>
|
/>
|
||||||
@@ -303,35 +301,25 @@
|
|||||||
<div class="flex flex-row gap-2 w-full items-center">
|
<div class="flex flex-row gap-2 w-full items-center">
|
||||||
<!-- svelte-ignore missing-declaration -->
|
<!-- svelte-ignore missing-declaration -->
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<button
|
<button
|
||||||
class="hover:brightness-110 transition-all"
|
class="hover:brightness-110 transition-all"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
navigator?.clipboard?.writeText(__VERSION__)
|
navigator?.clipboard?.writeText(__VERSION__)
|
||||||
toast({ content: 'Copied version to clipboard.' })
|
toast({ content: 'Copied version to clipboard.' })
|
||||||
}}
|
}}
|
||||||
>
|
|
||||||
<Badge>{__VERSION__}</Badge>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<Button
|
|
||||||
color="tertiary"
|
|
||||||
href="https://buymeacoffee.com/xylight"
|
|
||||||
title="Donate"
|
|
||||||
size="square-md"
|
|
||||||
>
|
>
|
||||||
<Icon src={Heart} size="16" mini />
|
<Badge>{__VERSION__}</Badge>
|
||||||
</Button>
|
</button>
|
||||||
<Button
|
</div>
|
||||||
color="tertiary"
|
<Button color="tertiary" href="https://buymeacoffee.com/xylight" title="Donate" size="square-md">
|
||||||
href="https://github.com/Xyphyn/Photon"
|
<Icon src={Heart} size="16" mini />
|
||||||
title="GitHub"
|
</Button>
|
||||||
size="square-md"
|
<Button color="tertiary" href="https://github.com/Xyphyn/Photon" title="GitHub" size="square-md">
|
||||||
>
|
<Icon src={CodeBracketSquare} size="16" mini />
|
||||||
<Icon src={CodeBracketSquare} size="16" mini />
|
</Button>
|
||||||
</Button>
|
<Button color="tertiary" href="/about" title="About" size="square-md">
|
||||||
<Button color="tertiary" href="/about" title="About" size="square-md">
|
<Icon src={InformationCircle} size="16" mini />
|
||||||
<Icon src={InformationCircle} size="16" mini />
|
</Button>
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</Menu>
|
</Menu>
|
||||||
|
|||||||
Reference in new issue
Block a user