From 1271c16f171518272dbf68090f8658b16d4312d7 Mon Sep 17 00:00:00 2001 From: digua Date: Tue, 14 Jul 2026 10:04:40 +0800 Subject: [PATCH] fix(sidebar): preserve titlebar safe area Keep the sidebar header below the fixed 32px title bar after removing the outer margin. This prevents header controls from being covered on non-macOS platforms. --- src/components/common/Sidebar.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue index de546ce2..eadff991 100644 --- a/src/components/common/Sidebar.vue +++ b/src/components/common/Sidebar.vue @@ -27,8 +27,6 @@ import logoSvg from '@/assets/images/logo.svg' const { t } = useI18n() const LATEST_VERSION_URL = 'https://chatlab.fun/latest-version' const UPDATE_CHECK_CACHE_KEY = 'chatlab:latest-version-check:v2' -const hasMacTitlebarInset = - IS_ELECTRON && typeof navigator !== 'undefined' && navigator.platform.toLowerCase().includes('mac') const sessionStore = useSessionStore() const layoutStore = useLayoutStore() @@ -419,7 +417,7 @@ function getAvatarColorClass(session: AnalysisSession, isActive: boolean) { class="flex h-full shrink-0 flex-col overflow-hidden rounded-lg bg-white transition-all duration-300 ease-in-out dark:bg-sidebar-dark" :class="isCollapsed ? 'w-14' : 'w-72'" > -
+