mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
fix search not working after backspacing it all
put downloaded glyph below sticker type icon
This commit is contained in:
2 files changed
+20
-22
No files matched your search
@@ -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)
|
||||
|
||||
@@ -47,7 +47,7 @@ struct SearchView: View {
|
||||
guard !searchTerm.isEmpty else {
|
||||
currentSearch?.cancel()
|
||||
searchResult = []
|
||||
previousSearches.append(searchTerm)
|
||||
previousSearches = []
|
||||
return
|
||||
}
|
||||
currentSearch = Task.detached {
|
||||
|
||||