fix search not working after backspacing it all

put downloaded glyph below sticker type icon
This commit is contained in:
neon443 committed 2026-04-03 23:05:40 +01:00
1 parent d0d8b05035
commit cff99ac34c
2 files changed
+1 -3

No files matched your search

@@ -30,7 +30,6 @@ struct StickerRow<T: Hoarder>: View {
.foregroundColor(isDownloaded ? .green : .primary) .foregroundColor(isDownloaded ? .green : .primary)
.lineLimit(nil) .lineLimit(nil)
.multilineTextAlignment(.leading) .multilineTextAlignment(.leading)
HStack(spacing: 5) {
Button { Button {
showTooltip.toggle() showTooltip.toggle()
} label: { } label: {
@@ -52,7 +51,6 @@ struct StickerRow<T: Hoarder>: View {
.transition(.scale) .transition(.scale)
} }
} }
}
.padding(5) .padding(5)
.background( .background(
RoundedRectangle(cornerRadius: 15) RoundedRectangle(cornerRadius: 15)
+1 -1
View File
@@ -47,7 +47,7 @@ struct SearchView: View {
guard !searchTerm.isEmpty else { guard !searchTerm.isEmpty else {
currentSearch?.cancel() currentSearch?.cancel()
searchResult = [] searchResult = []
previousSearches.append(searchTerm) previousSearches = []
return return
} }
currentSearch = Task.detached { currentSearch = Task.detached {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.