From 5085f56fa83ead66f94bfff54b4544a19bd5e75b Mon Sep 17 00:00:00 2001 From: JSR Date: Sat, 28 Mar 2026 09:27:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E8=BF=9B=E5=85=A5=E6=B2=89=E6=B5=B8=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 2 ++ src/components/ContentArea.tsx | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index c501b62..2287082 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -353,6 +353,7 @@ function MainContent(): React.JSX.Element { const isDark = currentTheme?.mode === "dark" const brandColor = currentTheme?.config?.tdesign?.brandColor || "#0052D9" + const isMobileDevice = isIosDevice || isAndroidDevice const showMobileBottomNav = isPortraitMode && !immersiveMode return ( @@ -395,6 +396,7 @@ function MainContent(): React.JSX.Element { onLogout={logout} showWindowControls={!isIosDevice && !isAndroidDevice} isPortraitMode={isPortraitMode} + isMobileDevice={isMobileDevice} sidebarCollapsed={sidebarCollapsed} floatingExpand={isPortraitMode} floatingExpanded={floatingSidebarExpanded} diff --git a/src/components/ContentArea.tsx b/src/components/ContentArea.tsx index 839827a..628f23e 100644 --- a/src/components/ContentArea.tsx +++ b/src/components/ContentArea.tsx @@ -60,6 +60,7 @@ interface ContentAreaProps { onLogout: () => void showWindowControls: boolean isPortraitMode: boolean + isMobileDevice: boolean sidebarCollapsed: boolean floatingExpand: boolean floatingExpanded: boolean @@ -78,6 +79,7 @@ export function ContentArea({ onLogout, showWindowControls, isPortraitMode, + isMobileDevice, sidebarCollapsed, floatingExpand, floatingExpanded, @@ -228,7 +230,7 @@ export function ContentArea({ } > - {(immersiveMode || isHomePage) && ( + {(immersiveMode || (isHomePage && !isMobileDevice)) && (