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
+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)
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||