summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Grid/PostGridView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-15 00:45:53 -0700
committerFuwn <[email protected]>2025-06-15 00:45:53 -0700
commit8941deac5766609cbb0d039c8390afb2febae635 (patch)
tree39db5f2c16793ef649a4070c8366bb576fee477e /Sora/Views/Post/Grid/PostGridView.swift
parentfeat: Development commit (diff)
downloadsora-testing-8941deac5766609cbb0d039c8390afb2febae635.tar.xz
sora-testing-8941deac5766609cbb0d039c8390afb2febae635.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift20
1 files changed, 10 insertions, 10 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index dc65c7d..39cd7da 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -127,18 +127,23 @@ struct PostGridView: View {
#endif
#if !os(macOS)
- ToolbarItem(placement: .bottomBar) {
+ ToolbarItem(placement: .secondaryAction) {
Button(action: { Task { isSearchHistoryPresented.toggle() } }) {
Label("Search History", systemImage: "clock.arrow.circlepath")
}
}
if manager.isLoading || manager.isNavigatingHistory {
- ToolbarItem { ProgressView() }
+ ToolbarItem(placement: .status) { ProgressView() }
}
#endif
- PlatformSpecificToolbarItem {
+ PlatformSpecificToolbarItem(placement: .secondaryAction) {
+ PostGridBookmarkButtonView()
+ .disabled(manager.tags.isEmpty)
+ }
+
+ PlatformSpecificToolbarItem(placement: .secondaryAction) {
Button(action: { Task { manager.loadNextPage() } }) {
Label(
"Manually Load Next Page",
@@ -148,19 +153,14 @@ struct PostGridView: View {
.disabled(manager.isLoading || manager.endOfData)
}
- PlatformSpecificToolbarItem {
- PostGridBookmarkButtonView()
- .disabled(manager.tags.isEmpty)
- }
-
- PlatformSpecificToolbarItem {
+ PlatformSpecificToolbarItem(placement: .navigation) {
Button(action: { manager.goBackInHistory() }) {
Label("Previous Search", systemImage: "chevron.left")
}
.disabled(!manager.canGoBackInHistory)
}
- PlatformSpecificToolbarItem {
+ PlatformSpecificToolbarItem(placement: .navigation) {
Button(action: { manager.goForwardInHistory() }) {
Label("Next Search", systemImage: "chevron.right")
}