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
+20 -22

No files matched your search

+19 -21
View File
@@ -30,27 +30,25 @@ struct StickerRow<T: Hoarder>: View {
.foregroundColor(isDownloaded ? .green : .primary)
.lineLimit(nil)
.multilineTextAlignment(.leading)
HStack(spacing: 5) {
Button {
showTooltip.toggle()
} label: {
Image(sticker.typeGlyph)
.resizable().scaledToFit()
.frame(maxHeight: 20)
.foregroundStyle(.gray)
}
.buttonStyle(.borderless)
.alert("From Slack", isPresented: $showTooltip) {
Button("Done") {}
}
if isDownloaded {
Image(systemName: "arrow.down.circle.fill")
.resizable().scaledToFit()
.frame(width: 20, height: 20)
.symbolRenderingMode(.hierarchical)
.foregroundStyle(.gray)
.transition(.scale)
}
Button {
showTooltip.toggle()
} label: {
Image(sticker.typeGlyph)
.resizable().scaledToFit()
.frame(maxHeight: 20)
.foregroundStyle(.gray)
}
.buttonStyle(.borderless)
.alert("From Slack", isPresented: $showTooltip) {
Button("Done") {}
}
if isDownloaded {
Image(systemName: "arrow.down.circle.fill")
.resizable().scaledToFit()
.frame(width: 20, height: 20)
.symbolRenderingMode(.hierarchical)
.foregroundStyle(.gray)
.transition(.scale)
}
}
.padding(5)
+1 -1
View File
@@ -47,7 +47,7 @@ struct SearchView: View {
guard !searchTerm.isEmpty else {
currentSearch?.cancel()
searchResult = []
previousSearches.append(searchTerm)
previousSearches = []
return
}
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.