05/21 Fix issue's photo problems

This commit is contained in:
Nguyen Ngo
2026-05-21 13:24:10 -04:00
parent 437ed913cd
commit 6aa3b74e61
8 changed files with 602 additions and 103 deletions
+23
View File
@@ -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 {