From 46091c8c670afeee97b1a3ec4c7078a816fec630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=E7=AC=91=E7=9A=84=E6=AF=9B=E6=AF=9B=E8=99=AB?= <315515767@qq.com> Date: Mon, 3 Aug 2026 19:52:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(canvas):=20=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E9=80=82=E9=85=8D=20=E2=80=94=20?= =?UTF-8?q?=E6=8A=BD=E5=B1=89=E5=BC=8F=E9=9A=90=E8=97=8F=20+=20=E6=B1=89?= =?UTF-8?q?=E5=A0=A1=E8=8F=9C=E5=8D=95=20+=20=E5=85=A8=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=20scrim=20#89=20(#90)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - app-top-nav.tsx: 移动端侧边栏默认 w-0(完全隐藏),展开时通过 is-mobile-expanded 变为 absolute 浮层;scrim 移除 spatialWorkbench 条件,全页面通用; stage 区域添加 lg:hidden 汉堡菜单按钮切换侧边栏显隐 - globals.css: 移动端 @media 规则通用化,is-mobile-expanded 浮层行为从 .is-spatial 限定改为 .app-workspace-shell 通用,scrim left 从 202px 改为 0 Co-authored-by: sikongyue <3155157671@qq.com> --- web/src/components/layout/app-top-nav.tsx | 16 +++++++++++----- web/src/styles/globals.css | 4 ++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/web/src/components/layout/app-top-nav.tsx b/web/src/components/layout/app-top-nav.tsx index 25a45840d..8affacf19 100644 --- a/web/src/components/layout/app-top-nav.tsx +++ b/web/src/components/layout/app-top-nav.tsx @@ -1,4 +1,4 @@ -import { Infinity as InfinityIcon } from "lucide-react"; +import { Infinity as InfinityIcon, PanelLeftClose, PanelLeftOpen } from "lucide-react"; import { Fragment, useEffect, useRef, useState, type ReactNode } from "react"; import { Link, useLocation, useNavigate } from "react-router"; @@ -46,16 +46,15 @@ export function AppWorkspaceShell({ children }: { children: ReactNode }) { }, [navigate]); useEffect(() => { - // 初始化滚动状态 handleScroll(); }, [visibleNavigationTools.length, mobileSidebarExpanded]); return ( <>