Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Sources/WeiBei/App/WeiBeiApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,12 @@ struct WeiBeiApp: App {
.onOpenURL { url in
store.importFiles([url])
}
.frame(minWidth: 1120, minHeight: 720)
// 自适应窗口:多窗格文档族 780 起(窗格可收成 28pt 细轨),
// 沉浸式单栏 520 起——塞得进分屏,也激活既有窄屏布局路径。
.frame(
minWidth: store.layout.isImmersiveFamily ? 520 : 780,
minHeight: 720
)
.ignoresSafeArea(.container, edges: .top)
}
.defaultSize(width: 1240, height: 760)
Expand Down