mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 19:04:23 +08:00
适配iOS端默认竖屏并隐藏窗口控制按钮
This commit is contained in:
@@ -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" }}>
|
||||
|
||||
Reference in New Issue
Block a user