refac: include help items in user menu

This commit is contained in:
Timothy Jaeryang Baek
2025-05-23 16:49:11 +04:00
parent dd8e742c2d
commit 02000b1a6c
8 changed files with 67 additions and 58 deletions
-2
View File
@@ -1,7 +1,5 @@
<script lang="ts">
import Chat from '$lib/components/chat/Chat.svelte';
import Help from '$lib/components/layout/Help.svelte';
</script>
<Help />
<Chat />
-2
View File
@@ -2,8 +2,6 @@
import { page } from '$app/stores';
import Chat from '$lib/components/chat/Chat.svelte';
import Help from '$lib/components/layout/Help.svelte';
</script>
<Help />
<Chat chatIdProp={$page.params.id} />
+2 -1
View File
@@ -68,8 +68,9 @@
<div class=" self-center flex items-center gap-1">
{#if $user !== undefined && $user !== null}
<UserMenu
className="max-w-[200px]"
className="max-w-[240px]"
role={$user?.role}
help={true}
on:show={(e) => {
if (e.detail === 'archived-chat') {
showArchivedChats.set(true);