From d9f46baa709b5de8f1dcf10c68fdf42de97a5fbf Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 8 Aug 2025 03:53:09 +0400 Subject: [PATCH] refac: sidebar --- src/lib/components/channel/Navbar.svelte | 42 +++-- src/lib/components/chat/Chat.svelte | 2 + src/lib/components/chat/Navbar.svelte | 46 ++--- src/lib/components/layout/Navbar.svelte | 41 ++-- src/lib/components/layout/Sidebar.svelte | 210 +++++++++++++++++++-- src/lib/components/notes/NoteEditor.svelte | 51 +++-- src/routes/(app)/admin/+layout.svelte | 34 ++-- src/routes/(app)/home/+layout.svelte | 36 ++-- src/routes/(app)/notes/+page.svelte | 34 ++-- src/routes/(app)/playground/+layout.svelte | 34 ++-- src/routes/(app)/workspace/+layout.svelte | 32 ++-- 11 files changed, 375 insertions(+), 187 deletions(-) diff --git a/src/lib/components/channel/Navbar.svelte b/src/lib/components/channel/Navbar.svelte index 855ba47fe4..b7bb5087b9 100644 --- a/src/lib/components/channel/Navbar.svelte +++ b/src/lib/components/channel/Navbar.svelte @@ -2,7 +2,7 @@ import { getContext } from 'svelte'; import { toast } from 'svelte-sonner'; - import { showArchivedChats, showSidebar, user } from '$lib/stores'; + import { mobile, showArchivedChats, showSidebar, user } from '$lib/stores'; import { slide } from 'svelte/transition'; import { page } from '$app/stores'; @@ -24,25 +24,27 @@
-
- - - -
+ {#if $mobile} +
+ + + +
+ {/if}