From f657af275a80ba36f3f8ead326ac6b493b816e1f Mon Sep 17 00:00:00 2001 From: ericholguin Date: Sat, 26 Oct 2024 21:36:59 -0600 Subject: [PATCH] ui: replace search notes button with searched word This PR replaces the search notes button with the searched word. This also removes the magnifying glass image from the search buttons. Closes: #2601 Changelog-Changed: Changed search notes button with searched keyword Signed-off-by: ericholguin --- damus/Views/SearchResultsView.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/damus/Views/SearchResultsView.swift b/damus/Views/SearchResultsView.swift index 782aec6f..b945d3ae 100644 --- a/damus/Views/SearchResultsView.swift +++ b/damus/Views/SearchResultsView.swift @@ -54,7 +54,6 @@ struct InnerSearchResults: View { let search_model = SearchModel(state: damus_state, search: .filter_hashtag([ht])) return NavigationLink(value: Route.Search(search: search_model)) { HStack { - Image("search") Text("#\(ht)", comment: "Navigation link to search hashtag.") } .padding(.horizontal, 15) @@ -71,8 +70,7 @@ struct InnerSearchResults: View { func TextSearch(_ txt: String) -> some View { return NavigationLink(value: Route.NDBSearch(results: $results)) { HStack { - Image("search") - Text("Notes", comment: "Navigation link to search text.") + Text("\(txt)", comment: "Navigation link to search text.") } .padding(.horizontal, 15) .padding(.vertical, 5) @@ -119,10 +117,12 @@ struct InnerSearchResults: View { SearchingEventView(state: damus_state, search_type: .naddr(naddr)) case .multi(let multi): VStack(alignment: .leading) { - HStack { + HStack(spacing: 20) { HashtagSearch(multi.hashtag) TextSearch(multi.text) } + .padding(.bottom, 10) + ProfilesSearch(multi.profiles) }