From c8600f80467122a8e4b6eb993762f71674cc5793 Mon Sep 17 00:00:00 2001 From: hyungi Date: Mon, 8 Jun 2026 08:14:39 +0900 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=EB=8D=B0=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=ED=83=91=20=EB=B6=84=EB=A5=98=20=EC=82=AC=EC=9D=B4=EB=93=9C?= =?UTF-8?q?=EB=B0=94=20=EC=A0=91=EA=B8=B0/=ED=8E=B4=EA=B8=B0=20=ED=86=A0?= =?UTF-8?q?=EA=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 상단 nav 좌측 PanelLeft 버튼으로 좌측 분류(소스트리) 사이드바를 접고/펼침. 접으면 aside w-sidebar→w-0(+border 제거)로 콘텐츠가 넓어짐, 상태는 localStorage 기억. 확정 시안(documents-confirmed-column-browser)의 '소스트리 접기/펴기' 반영. Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/src/routes/+layout.svelte | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index fb73bd1..3c08d7f 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -3,7 +3,7 @@ import { browser } from '$app/environment'; import { page } from '$app/stores'; import { goto } from '$app/navigation'; - import { Menu, EllipsisVertical, ChevronDown, FileText, Newspaper, HelpCircle, StickyNote, Inbox } from 'lucide-svelte'; + import { Menu, EllipsisVertical, ChevronDown, FileText, Newspaper, HelpCircle, StickyNote, Inbox, PanelLeft } from 'lucide-svelte'; import { isAuthenticated, user, tryRefresh, logout } from '$lib/stores/auth'; import { toasts, removeToast } from '$lib/stores/toast'; import { refresh as refreshPublicConfig } from '$lib/stores/config'; @@ -32,6 +32,15 @@ let menuOpen = $state(false); // ⋮ 설정 메뉴 let navMenu = $state(''); // '' | 'docs' | 'news' — 상단 드롭다운 + // 데스크탑 분류(소스트리) 사이드바 접기/펴기 — localStorage 기억. 접으면 콘텐츠가 넓어짐. + let sidebarCollapsed = $state( + typeof localStorage !== 'undefined' ? localStorage.getItem('sidebarCollapsed') === 'true' : false + ); + function toggleSidebarCollapse() { + sidebarCollapsed = !sidebarCollapsed; + if (typeof localStorage !== 'undefined') localStorage.setItem('sidebarCollapsed', String(sidebarCollapsed)); + } + function isActive(path) { return $page.url.pathname.startsWith(path); } @@ -85,6 +94,11 @@
ui.openDrawer('sidebar')} />
+ {/if} DS @@ -150,7 +164,7 @@
{#if showSidebar} -