05/21 Fix issue's photo problems
This commit is contained in:
@@ -10,6 +10,7 @@ struct LoginView: View {
|
||||
|
||||
@State private var username = ""
|
||||
@State private var password = ""
|
||||
@State private var selectedServer: ServerOption = ServerConfig.selectedOption
|
||||
@FocusState private var focusedField: Field?
|
||||
|
||||
private enum Field { case username, password }
|
||||
@@ -40,6 +41,28 @@ struct LoginView: View {
|
||||
|
||||
// ── Login Form ─────────────────────────────────────────
|
||||
VStack(spacing: 16) {
|
||||
|
||||
// ── Server Picker ──────────────────────────────────
|
||||
GroupBox {
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
Label("Server", systemImage: "server.rack")
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
Picker("Server", selection: $selectedServer) {
|
||||
ForEach(ServerOption.allCases, id: \.self) { option in
|
||||
Text(option.displayName).tag(option)
|
||||
}
|
||||
}
|
||||
.pickerStyle(.segmented)
|
||||
.onChange(of: selectedServer) { _, newValue in
|
||||
ServerConfig.select(newValue)
|
||||
}
|
||||
}
|
||||
.padding(.vertical, 4)
|
||||
.padding(.horizontal, 4)
|
||||
}
|
||||
.frame(maxWidth: 400)
|
||||
|
||||
GroupBox {
|
||||
VStack(spacing: 0) {
|
||||
HStack {
|
||||
|
||||
Reference in New Issue
Block a user