mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 19:04:23 +08:00
fix: 移除手机端进入沉浸模式按钮
This commit is contained in:
@@ -353,6 +353,7 @@ function MainContent(): React.JSX.Element {
|
|||||||
|
|
||||||
const isDark = currentTheme?.mode === "dark"
|
const isDark = currentTheme?.mode === "dark"
|
||||||
const brandColor = currentTheme?.config?.tdesign?.brandColor || "#0052D9"
|
const brandColor = currentTheme?.config?.tdesign?.brandColor || "#0052D9"
|
||||||
|
const isMobileDevice = isIosDevice || isAndroidDevice
|
||||||
const showMobileBottomNav = isPortraitMode && !immersiveMode
|
const showMobileBottomNav = isPortraitMode && !immersiveMode
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -395,6 +396,7 @@ function MainContent(): React.JSX.Element {
|
|||||||
onLogout={logout}
|
onLogout={logout}
|
||||||
showWindowControls={!isIosDevice && !isAndroidDevice}
|
showWindowControls={!isIosDevice && !isAndroidDevice}
|
||||||
isPortraitMode={isPortraitMode}
|
isPortraitMode={isPortraitMode}
|
||||||
|
isMobileDevice={isMobileDevice}
|
||||||
sidebarCollapsed={sidebarCollapsed}
|
sidebarCollapsed={sidebarCollapsed}
|
||||||
floatingExpand={isPortraitMode}
|
floatingExpand={isPortraitMode}
|
||||||
floatingExpanded={floatingSidebarExpanded}
|
floatingExpanded={floatingSidebarExpanded}
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ interface ContentAreaProps {
|
|||||||
onLogout: () => void
|
onLogout: () => void
|
||||||
showWindowControls: boolean
|
showWindowControls: boolean
|
||||||
isPortraitMode: boolean
|
isPortraitMode: boolean
|
||||||
|
isMobileDevice: boolean
|
||||||
sidebarCollapsed: boolean
|
sidebarCollapsed: boolean
|
||||||
floatingExpand: boolean
|
floatingExpand: boolean
|
||||||
floatingExpanded: boolean
|
floatingExpanded: boolean
|
||||||
@@ -78,6 +79,7 @@ export function ContentArea({
|
|||||||
onLogout,
|
onLogout,
|
||||||
showWindowControls,
|
showWindowControls,
|
||||||
isPortraitMode,
|
isPortraitMode,
|
||||||
|
isMobileDevice,
|
||||||
sidebarCollapsed,
|
sidebarCollapsed,
|
||||||
floatingExpand,
|
floatingExpand,
|
||||||
floatingExpanded,
|
floatingExpanded,
|
||||||
@@ -228,7 +230,7 @@ export function ContentArea({
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Space size="small">
|
<Space size="small">
|
||||||
{(immersiveMode || isHomePage) && (
|
{(immersiveMode || (isHomePage && !isMobileDevice)) && (
|
||||||
<Button
|
<Button
|
||||||
size="small"
|
size="small"
|
||||||
type={immersiveMode ? "primary" : "default"}
|
type={immersiveMode ? "primary" : "default"}
|
||||||
|
|||||||
Reference in New Issue
Block a user