mirror of
https://github.com/yattee/yattee.git
synced 2025-04-28 07:50:33 +05:30
Fix search suggestion prefix
This commit is contained in:
parent
5050ad5d02
commit
534f356471
@ -30,10 +30,12 @@ struct SearchSuggestions: View {
|
|||||||
HStack {
|
HStack {
|
||||||
Image(systemName: "magnifyingglass")
|
Image(systemName: "magnifyingglass")
|
||||||
HStack(spacing: 0) {
|
HStack(spacing: 0) {
|
||||||
Text(state.suggestionsText)
|
if suggestion.hasPrefix(state.suggestionsText.lowercased()) {
|
||||||
|
Text(state.suggestionsText.lowercased())
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.layoutPriority(2)
|
.layoutPriority(2)
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
|
}
|
||||||
|
|
||||||
Text(querySuffix(suggestion))
|
Text(querySuffix(suggestion))
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user