mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-11-02 00:04:46 +00:00
fix(servers): remove location menu indentation
This commit is contained in:
@@ -16,15 +16,14 @@ struct CreationLocationField: View {
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
let nodes = ancestors
|
||||
Picker("位置", selection: $parent) {
|
||||
ForEach(Array(nodes.enumerated()), id: \.element.id) { depth, node in
|
||||
Text(verbatim: String(repeating: " ", count: depth) + node.name)
|
||||
ForEach(ancestors) { node in
|
||||
Text(verbatim: node.name)
|
||||
.lineLimit(1)
|
||||
.truncationMode(.tail)
|
||||
.tag(Optional(node.id))
|
||||
}
|
||||
(Text(verbatim: String(repeating: " ", count: nodes.count)) + Text("所有服务器"))
|
||||
Text("所有服务器")
|
||||
.tag(nil as NodeID?)
|
||||
}
|
||||
.pickerStyle(.menu)
|
||||
|
||||
Reference in New Issue
Block a user