Skip to content

Commit d7688fd

Browse files
committed
优化按钮
1 parent 8c2d3f2 commit d7688fd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

V2rayU/UI/Views/Profile/LegacyImportView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ struct LegacyImportView: View {
3333
} else {
3434
contentSection
3535
}
36-
3736
Divider()
38-
3937
footerSection
4038
}
4139
.frame(width: 500, height: 400)
@@ -76,6 +74,7 @@ struct LegacyImportView: View {
7674
.foregroundStyle(.secondary)
7775
}
7876
.buttonStyle(.plain)
77+
.focusable(false)
7978
.keyboardShortcut(.cancelAction)
8079
}
8180
.padding(20)
@@ -277,12 +276,13 @@ struct LegacyImportView: View {
277276

278277
private var footerSection: some View {
279278
HStack {
279+
Spacer()
280+
280281
Button(String(localized: .Close)) {
281282
onDismiss()
282283
}
284+
.focusable(false)
283285
.keyboardShortcut(.cancelAction)
284-
285-
Spacer()
286286
}
287287
.padding(16)
288288
}

0 commit comments

Comments
 (0)