diff --git a/src/components/GlobalSidebar/index.js b/src/components/GlobalSidebar/index.js index f0d09610..9cc53229 100644 --- a/src/components/GlobalSidebar/index.js +++ b/src/components/GlobalSidebar/index.js @@ -29,6 +29,7 @@ import { useNavigate } from 'react-router-dom'; import { useGlobalSidebar } from '@/contexts/GlobalSidebarContext'; import { useAuth } from '@/contexts/AuthContext'; import { getEventDetailUrl } from '@/utils/idEncoder'; +import { Z_INDEX } from '@/layouts/config/layoutConfig'; import WatchSidebar from '@views/Profile/components/WatchSidebar'; import { WatchlistPanel, FollowingEventsPanel } from '@views/Profile/components/WatchSidebar/components'; import HotSectorsRanking from '@views/Profile/components/MarketDashboard/components/atoms/HotSectorsRanking'; @@ -267,12 +268,14 @@ const GlobalSidebar = () => { return ( {/* 加载状态 */} {loading && ( @@ -287,8 +290,9 @@ const GlobalSidebar = () => { {/* 标题栏 - 收起按钮 + 标题 */} - {/* 主体区域 - 左侧页面内容 + 右侧全局侧边栏 */} - - {/* 页面内容区域 - flex: 1 占据剩余空间,包含错误边界、懒加载 */} - + {/* 主体区域 - 页面内容 + 右侧全局侧边栏(绝对定位覆盖) */} + + {/* 页面内容区域 - 全宽度,与导航栏对齐 */} + }> @@ -51,9 +51,11 @@ export default function MainLayout() { - {/* 全局右侧工具栏 - 可收起/展开 */} - - + {/* 全局右侧工具栏 - 绝对定位覆盖在内容上方 */} + + + + {/* 返回顶部按钮 - 滚动超过阈值时显示 */} {/*