mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-11-09 13:31:25 +03:00
Align number fields in SwiftUI to trailing
This commit is contained in:
parent
49d4888e5d
commit
0e5f532b2b
@ -57,6 +57,7 @@ struct CustomTabWidthView: View {
|
||||
Form {
|
||||
TextField("Tab width:", value: $value, format: .number, prompt: Text(self.defaultWidth, format: .number))
|
||||
.monospacedDigit()
|
||||
.multilineTextAlignment(.trailing)
|
||||
.onSubmit(self.submit)
|
||||
}
|
||||
|
||||
|
@ -56,6 +56,7 @@ struct GoToLineView: View {
|
||||
Form {
|
||||
TextField("Line:", text: $value, prompt: Text("Line Number"))
|
||||
.monospacedDigit()
|
||||
.multilineTextAlignment(.trailing)
|
||||
.onSubmit(self.submit)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user