调整横竖切换为图标按钮并锁定竖屏尺寸

This commit is contained in:
JSR
2026-03-18 21:07:39 +08:00
parent 224c89f4dd
commit ff29ed5fff
6 changed files with 41 additions and 11 deletions
+4 -2
View File
@@ -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)