fix: 移除手机端进入沉浸模式按钮

This commit is contained in:
JSR
2026-03-28 09:27:55 +08:00
parent 56c2a4643c
commit 5085f56fa8
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -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}
+3 -1
View File
@@ -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({
}
>
<Space size="small">
{(immersiveMode || isHomePage) && (
{(immersiveMode || (isHomePage && !isMobileDevice)) && (
<Button
size="small"
type={immersiveMode ? "primary" : "default"}