fix:优化h5/菜单UI

This commit is contained in:
zdl
2025-11-21 13:55:06 +08:00
parent a1c1a36f6a
commit 796c623197
2 changed files with 42 additions and 17 deletions

View File

@@ -167,20 +167,14 @@ export default function HomeNavbar() {
<BrandLogo />
{/* 中间导航区域 - 响应式 (Phase 4 优化) */}
{isMobile ? (
// 移动端:汉堡菜单
<IconButton
icon={<HamburgerIcon />}
variant="ghost"
onClick={onOpen}
aria-label="Open menu"
/>
) : isTablet ? (
// 中屏(平板):"更多"下拉菜单
<MoreMenu isAuthenticated={isAuthenticated} user={user} />
) : (
// 大屏(桌面):完整导航菜单
<DesktopNav isAuthenticated={isAuthenticated} user={user} />
{!isMobile && (
isTablet ? (
// 中屏(平板):"更多"下拉菜单
<MoreMenu isAuthenticated={isAuthenticated} user={user} />
) : (
// 大屏(桌面):完整导航菜单
<DesktopNav isAuthenticated={isAuthenticated} user={user} />
)
)}
{/* 右侧功能区 (Phase 7 优化) */}
@@ -189,6 +183,8 @@ export default function HomeNavbar() {
isAuthenticated={isAuthenticated}
user={user}
isDesktop={isDesktop}
isMobile={isMobile}
onMenuOpen={onOpen}
handleLogout={handleLogout}
watchlistQuotes={watchlistQuotes}
followingEvents={followingEvents}