适配iOS端默认竖屏并隐藏窗口控制按钮

This commit is contained in:
JSR
2026-03-19 18:38:26 +08:00
parent 2075025937
commit b8684b6c11
3 changed files with 32 additions and 7 deletions
+8 -4
View File
@@ -46,6 +46,7 @@ interface ContentAreaProps {
hasAnyPassword: boolean
onAuthClick: () => void
onLogout: () => void
showWindowControls: boolean
isPortraitMode: boolean
sidebarCollapsed: boolean
floatingExpand: boolean
@@ -59,6 +60,7 @@ export function ContentArea({
hasAnyPassword,
onAuthClick,
onLogout,
showWindowControls,
isPortraitMode,
sidebarCollapsed,
floatingExpand,
@@ -189,10 +191,12 @@ export function ContentArea({
)}
</Space>
</div>
<WindowControls
isPortraitMode={isPortraitMode}
onToggleOrientation={onToggleOrientation}
/>
{showWindowControls && (
<WindowControls
isPortraitMode={isPortraitMode}
onToggleOrientation={onToggleOrientation}
/>
)}
</div>
<Content style={{ flex: 1, overflowY: "auto", overflowX: "hidden" }}>