mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 11:49:02 +08:00
调整横竖切换为图标按钮并锁定竖屏尺寸
This commit is contained in:
+4
-2
@@ -140,10 +140,12 @@ function MainContent(): React.JSX.Element {
|
||||
await api.windowMaximize()
|
||||
}
|
||||
if (nextPortraitMode) {
|
||||
await api.windowResize(800, 1000)
|
||||
await api.windowSetResizable(false)
|
||||
await api.windowResize(940, 1280)
|
||||
setSidebarCollapsed(true)
|
||||
} else {
|
||||
await api.windowResize(1180, 680)
|
||||
await api.windowSetResizable(true)
|
||||
await api.windowResize(1440, 900)
|
||||
setSidebarCollapsed(false)
|
||||
}
|
||||
setIsPortraitMode(nextPortraitMode)
|
||||
|
||||
Reference in New Issue
Block a user