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 ( <>
- {spatialWorkbench && mobileSidebarExpanded ? + ) : null} + {children} +