Skip to content

Commit

Permalink
Change layout of filter fields
Browse files Browse the repository at this point in the history
  • Loading branch information
swiftyfinch committed May 3, 2024
1 parent 010d0f8 commit bdf1060
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"originHash" : "a2d66115cefb52e5ab3c595362b7e75e81c2e2566cf0fc9352d48f995e347a2d",
"pins" : [
{
"identity" : "aexml",
Expand Down Expand Up @@ -83,5 +82,5 @@
}
}
],
"version" : 3
"version" : 2
}
5 changes: 3 additions & 2 deletions XTree/XTree/Common/UI/FilterTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct FilterTextField: View {
var body: some View {
HStack(spacing: 5) {
TextField(placeholder, text: $text)
.font(.system(size: 11))
.font(.subheadline)
.disableAutocorrection(true)
.textFieldStyle(PlainTextFieldStyle())
.focused($isFocused)
Expand All @@ -26,7 +26,8 @@ struct FilterTextField: View {
.buttonStyle(PlainButtonStyle())
}
}
.padding(.horizontal, 5)
.padding(.leading, 8)
.padding(.trailing, 4)
.frame(height: 22)
.background(Color(nsColor: isFocused ? .textBackgroundColor : .background))
.cornerRadius(8)
Expand Down
1 change: 0 additions & 1 deletion XTree/XTree/Modules/Main/FiltersView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,5 @@ struct FiltersView: View {
.onSubmit(onSubmit)
.focused($focusState, equals: .filter)
}
.padding(.horizontal, 4)
}
}
1 change: 1 addition & 0 deletions XTree/XTree/Modules/Main/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ struct MainView: View {
focusState: _focusState,
onSubmit: update
)
.padding(.horizontal, 12)
}
ZStack {
Color.clear
Expand Down

0 comments on commit bdf1060

Please sign in to comment.