diff options
| author | Fuwn <[email protected]> | 2025-06-15 00:45:53 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-15 00:45:53 -0700 |
| commit | 8941deac5766609cbb0d039c8390afb2febae635 (patch) | |
| tree | 39db5f2c16793ef649a4070c8366bb576fee477e /Sora/Views/Post/Grid/PostGridView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-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.swift | 20 |
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") } |