mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-10-29 05:33:45 +00:00
fix(import): 导入面板高度自适应内容
去掉 minHeight 钉死的初始高度,拖放区改固定高:初始面板收拢为内容 自然高度,结果区出现时面板随内容长高。
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user