From ada9f890c660f8e845eca5943ed78733b1f57377 Mon Sep 17 00:00:00 2001 From: kurihada Date: Fri, 12 Dec 2025 17:59:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E4=BF=AE=E5=A4=8D=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E5=BC=8F=E4=BE=A7=E8=BE=B9=E6=A0=8F=E9=87=8D=E5=A4=8D=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移动端抽屉和桌面端侧边栏分别用 md:hidden 和 hidden md:flex 控制显示 --- packages/ui/src/components/Sidebar.tsx | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/packages/ui/src/components/Sidebar.tsx b/packages/ui/src/components/Sidebar.tsx index a817513..9700889 100644 --- a/packages/ui/src/components/Sidebar.tsx +++ b/packages/ui/src/components/Sidebar.tsx @@ -247,7 +247,7 @@ export function Sidebar({ - {/* 遮罩层 */} + {/* 遮罩层 - 仅移动端 */} {isOpen && ( - {/* 侧边栏 */} + {/* 移动端抽屉式侧边栏 */} -
- -
-
- -
+
{/* 桌面端固定侧边栏 */}