feat: Add private messages

This commit is contained in:
Xyphyn committed 2023-07-06 11:54:53 -07:00
1 parent 1a0881f9ce
commit 7113dc8463
9 files changed
+176 -46

No files matched your search

+8 -3
View File
@@ -89,13 +89,18 @@
{/if}
{/if}
</button>
<span class="text-xs opacity-80 text-left mx-4 my-2">Profile</span>
{#if !$user}
<span class="text-xs opacity-80 text-left mx-4 my-2">
{$user ? $user.person_view.person.name : 'Profile'}
</span>
{#if !$user || !$authData}
<MenuButton link href="/login">
<Icon src={ArrowLeftOnRectangle} mini width={16} /> Log in
</MenuButton>
{:else}
<MenuButton link href="/u/{$user.person_view.person.name}">
<MenuButton
link
href="/u/{$user.person_view.person.name}@{$authData.instance}"
>
<Icon src={UserCircle} mini width={16} /> Profile
</MenuButton>
<MenuButton link href="/inbox">
+2 -1
View File
@@ -1,7 +1,8 @@
<div
class="sticky top-20 bg-white shadow-md border-slate-200
dark:border-zinc-800 dark:bg-zinc-900 break-words hidden lg:flex
flex-col gap-4 p-8 max-w-sm rounded-md h-max max-h-[calc(100vh-6rem)] overflow-auto"
flex-col gap-4 p-8 max-w-sm rounded-md h-max max-h-[calc(100vh-6rem)]
overflow-auto w-full"
>
<slot />
</div>