From eb8df6de0f083e31beb4cc1d2d941538ee994907 Mon Sep 17 00:00:00 2001 From: TaskPool Date: Sun, 26 Jul 2026 16:27:24 +0800 Subject: [PATCH] fix(ui): remove sidebar collapse footer and unify header control heights --- web/src/components/Layout.tsx | 46 +++++++------------- web/src/components/business/NodeSwitcher.tsx | 4 +- web/src/components/business/SystemNotice.tsx | 12 +++-- 3 files changed, 22 insertions(+), 40 deletions(-) diff --git a/web/src/components/Layout.tsx b/web/src/components/Layout.tsx index 5f08883..a667178 100644 --- a/web/src/components/Layout.tsx +++ b/web/src/components/Layout.tsx @@ -33,7 +33,7 @@ import { SystemNotice } from '@/components/business/SystemNotice' import { ToastHost } from '@/components/business/ToastHost' import { resetAuthCache } from '@/lib/auth' import { eventBus } from '@/lib/event-bus' -import { Button, cn } from '@/components/ui' +import { cn } from '@/components/ui' const NAV_ITEMS = [ { path: '/', icon: LayoutDashboard, label: '数据仪表', exact: true }, @@ -213,23 +213,6 @@ export default function Layout() { ) })} - - {/* 桌面端:侧栏底部放一个次要折叠入口,主入口在顶栏 */} - {!isMobile && ( -
- -
- )}
@@ -237,19 +220,19 @@ export default function Layout() {
{isMobile ? ( ) : ( )}

@@ -257,30 +240,30 @@ export default function Layout() {

-
+ {/* 顶栏工具统一 h-8,避免通知/主题/用户高度不一致 */} +
- + - {/* 用户菜单:退出登录放这里,比左下角更干净 */}
+ {open ? ( <>