From 7d5784bb3adc2069327497bcab000bb5774898bb Mon Sep 17 00:00:00 2001 From: Qiu Yuzhou Date: Sun, 4 Oct 2026 21:59:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(import):=20=E5=AF=BC=E5=85=A5=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E9=AB=98=E5=BA=A6=E8=87=AA=E9=80=82=E5=BA=94=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去掉 minHeight 钉死的初始高度,拖放区改固定高:初始面板收拢为内容 自然高度,结果区出现时面板随内容长高。 --- ShadowsocksX-NG2/App/ImportServersSheet.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ShadowsocksX-NG2/App/ImportServersSheet.swift b/ShadowsocksX-NG2/App/ImportServersSheet.swift index 11b4979d..fc1bc2c5 100644 --- a/ShadowsocksX-NG2/App/ImportServersSheet.swift +++ b/ShadowsocksX-NG2/App/ImportServersSheet.swift @@ -47,7 +47,7 @@ struct ImportServersSheet: View { } } .padding(24) - .frame(minWidth: 520, minHeight: 380) + .frame(minWidth: 520) .fileImporter( isPresented: $showFileImporter, allowedContentTypes: [.image, .json, .plainText], @@ -80,8 +80,7 @@ struct ImportServersSheet: View { .multilineTextAlignment(.center) } .frame(maxWidth: .infinity) - .frame(minHeight: 160) - .padding(.vertical, 12) + .frame(height: 170) .background( RoundedRectangle(cornerRadius: 10) .fill(hovering ? Color.orange.opacity(0.08) : Color.primary.opacity(0.03))