File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -353,6 +353,7 @@ function MainContent(): React.JSX.Element {
353353
354354 const isDark = currentTheme ?. mode === "dark"
355355 const brandColor = currentTheme ?. config ?. tdesign ?. brandColor || "#0052D9"
356+ const isMobileDevice = isIosDevice || isAndroidDevice
356357 const showMobileBottomNav = isPortraitMode && ! immersiveMode
357358
358359 return (
@@ -395,6 +396,7 @@ function MainContent(): React.JSX.Element {
395396 onLogout = { logout }
396397 showWindowControls = { ! isIosDevice && ! isAndroidDevice }
397398 isPortraitMode = { isPortraitMode }
399+ isMobileDevice = { isMobileDevice }
398400 sidebarCollapsed = { sidebarCollapsed }
399401 floatingExpand = { isPortraitMode }
400402 floatingExpanded = { floatingSidebarExpanded }
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ interface ContentAreaProps {
6060 onLogout : ( ) => void
6161 showWindowControls : boolean
6262 isPortraitMode : boolean
63+ isMobileDevice : boolean
6364 sidebarCollapsed : boolean
6465 floatingExpand : boolean
6566 floatingExpanded : boolean
@@ -78,6 +79,7 @@ export function ContentArea({
7879 onLogout,
7980 showWindowControls,
8081 isPortraitMode,
82+ isMobileDevice,
8183 sidebarCollapsed,
8284 floatingExpand,
8385 floatingExpanded,
@@ -228,7 +230,7 @@ export function ContentArea({
228230 }
229231 >
230232 < Space size = "small" >
231- { ( immersiveMode || isHomePage ) && (
233+ { ( immersiveMode || ( isHomePage && ! isMobileDevice ) ) && (
232234 < Button
233235 size = "small"
234236 type = { immersiveMode ? "primary" : "default" }
You can’t perform that action at this time.
0 commit comments