Skip to content

Commit 8c4f30b

Browse files
committed
minor add server style changes
1 parent c4456f6 commit 8c4f30b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Django Files/Views/SessionEditor.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct SessionEditor: View {
6565
var body: some View {
6666
NavigationStack {
6767
Form {
68-
LabeledContent{
68+
Section(header: Text("Server URL")) {
6969
TextField("", text: Binding(
7070
get: {
7171
if url?.scheme == nil || url?.scheme == ""{
@@ -90,8 +90,7 @@ struct SessionEditor: View {
9090
.disableAutocorrection(true)
9191
.textInputAutocapitalization(.never)
9292
.accessibilityIdentifier("urlTextField")
93-
} label: {
94-
Text("URL:")
93+
.keyboardType(.URL)
9594
}
9695
if insecureURL {
9796
let warningMessage = "⚠️ HTTPS strongly recommend."
@@ -103,6 +102,7 @@ struct SessionEditor: View {
103102
.foregroundColor(.red)
104103
}
105104
}
105+
.padding(.top, -40)
106106
.toolbar {
107107
ToolbarItem(placement: .principal) {
108108
Text(editorTitle)
@@ -125,7 +125,7 @@ struct SessionEditor: View {
125125
}
126126
})
127127
{
128-
Text(editorTitle)
128+
Text("Save")
129129
}
130130
.accessibilityIdentifier("serverSubmitButton")
131131
.alert(isPresented: $badURL){

0 commit comments

Comments
 (0)