mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Minor style change
This commit is contained in:
parent
d5362519d6
commit
5b0f6397d6
@ -286,6 +286,18 @@ struct SearchView: View {
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
ForEach(recentItems) { item in
|
||||
recentItemButton(item)
|
||||
}
|
||||
}
|
||||
.redrawOn(change: recentsChanged)
|
||||
}
|
||||
}
|
||||
#if os(iOS)
|
||||
.listStyle(.insetGrouped)
|
||||
#endif
|
||||
}
|
||||
|
||||
private func recentItemButton(_ item: RecentItem) -> some View {
|
||||
Button {
|
||||
switch item.type {
|
||||
case .query:
|
||||
@ -333,14 +345,6 @@ struct SearchView: View {
|
||||
removeAllButton
|
||||
}
|
||||
}
|
||||
}
|
||||
.redrawOn(change: recentsChanged)
|
||||
}
|
||||
}
|
||||
#if os(iOS)
|
||||
.listStyle(.insetGrouped)
|
||||
#endif
|
||||
}
|
||||
|
||||
private func removeButton(_ item: RecentItem) -> some View {
|
||||
Button {
|
||||
|
Loading…
Reference in New Issue
Block a user