[Mac] Make editor title field padding consistent with body

This applies the same changes from iOS. It is untested.
This commit is contained in:
Matt Baer 2020-10-21 16:02:31 -04:00
parent 60ebdd2e3e
commit 873d39eb5c

View File

@ -14,6 +14,7 @@ struct PostEditorView: View {
case "sans":
TextField("Title (optional)", text: $post.title)
.textFieldStyle(PlainTextFieldStyle())
.padding(.horizontal, 4)
.padding(.bottom)
.font(.custom("OpenSans-Regular", size: 26, relativeTo: Font.TextStyle.largeTitle))
.onChange(of: post.title) { _ in
@ -51,6 +52,7 @@ struct PostEditorView: View {
case "wrap", "mono", "code":
TextField("Title (optional)", text: $post.title)
.textFieldStyle(PlainTextFieldStyle())
.padding(.horizontal, 4)
.padding(.bottom)
.font(.custom("Hack", size: 26, relativeTo: Font.TextStyle.largeTitle))
.onChange(of: post.title) { _ in
@ -88,6 +90,7 @@ struct PostEditorView: View {
default:
TextField("Title (optional)", text: $post.title)
.textFieldStyle(PlainTextFieldStyle())
.padding(.horizontal, 4)
.padding(.bottom)
.font(.custom("Lora", size: 26, relativeTo: Font.TextStyle.largeTitle))
.onChange(of: post.title) { _ in