From d4ee5e0e56eb12a8547dedd5f92d172d972dcf89 Mon Sep 17 00:00:00 2001 From: taekchef Date: Sat, 22 Aug 2026 16:24:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=AA=97=E5=8F=A3=E6=9C=80=E5=B0=8F?= =?UTF-8?q?=E5=AE=BD=E7=BB=9F=E4=B8=80=E9=99=8D=E8=87=B3=20520=E2=80=94?= =?UTF-8?q?=E2=80=94=E5=B0=8F=E4=BA=8E=E5=8D=8A=E5=B1=8F=E5=AE=BD,macOS=20?= =?UTF-8?q?=E6=8B=96=E8=BF=91=E8=BE=B9=E7=BC=98=E6=89=8D=E4=BC=9A=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E8=B4=B4=E8=BE=B9=E5=88=86=E5=B1=8F=E5=90=B8=E9=99=84?= =?UTF-8?q?=E5=8C=BA(780=20=E5=A4=A7=E4=BA=8E=E5=8D=8A=E5=B1=8F=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=90=B8=E9=99=84=E5=8C=BA=E4=B8=8D=E5=87=BA=E7=8E=B0?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/WeiBei/App/WeiBeiApp.swift | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Sources/WeiBei/App/WeiBeiApp.swift b/Sources/WeiBei/App/WeiBeiApp.swift index 79633e1c6..a023f4b3b 100644 --- a/Sources/WeiBei/App/WeiBeiApp.swift +++ b/Sources/WeiBei/App/WeiBeiApp.swift @@ -130,12 +130,9 @@ struct WeiBeiApp: App { .onOpenURL { url in store.importFiles([url]) } - // 自适应窗口:多窗格文档族 780 起(窗格可收成 28pt 细轨), - // 沉浸式单栏 520 起——塞得进分屏,也激活既有窄屏布局路径。 - .frame( - minWidth: store.layout.isImmersiveFamily ? 520 : 780, - minHeight: 720 - ) + // 自适应窗口:统一 520 起——必须小于半个屏宽,macOS 才会在 + // 拖近屏幕边缘时给出贴边分屏吸附区;窄窗下窗格收 28pt 细轨。 + .frame(minWidth: 520, minHeight: 720) .ignoresSafeArea(.container, edges: .top) } .defaultSize(width: 1240, height: 760)