Skip to content

Commit

Permalink
Tweak fonts and spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
mplorentz committed Oct 22, 2024
1 parent 1e473e2 commit 382d75c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Nos/Views/Components/SearchBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@ struct SearchBar: View {
Image(systemName: "magnifyingglass")
.foregroundColor(Color(.secondaryTxt))
TextField("", text: $text)
.font(.clarity(.regular))
.foregroundColor(.primaryTxt)
.modifier(
PlaceholderStyle(
show: $text.wrappedValue.isEmpty,
placeholder: placeholder,
placeholderColor: .secondaryTxt,
font: .caption
)
)
.placeholder(when: $text.wrappedValue.isEmpty, placeholder: {
Text(placeholder)
.foregroundStyle(Color.secondaryTxt)
.lineLimit(1)
})
.onTapGesture {
isSearching.wrappedValue = true // Set focus to the search bar when tapped
}
Expand Down

0 comments on commit 382d75c

Please sign in to comment.