fix(Layout): 全局布局优化与 Mock 数据增强

This commit is contained in:
zdl
2025-12-23 17:45:19 +08:00
parent 602dcf8eee
commit f1ae48bd42
6 changed files with 84 additions and 11 deletions

View File

@@ -29,7 +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 { Z_INDEX, LAYOUT_SIZE } 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';
@@ -269,6 +269,7 @@ const GlobalSidebar = () => {
<Box
w={isOpen ? '300px' : '72px'}
h="100%"
pt={LAYOUT_SIZE.navbarHeight}
flexShrink={0}
transition="width 0.2s ease-in-out"
display={{ base: 'none', md: 'block' }}