From f5744c78f3790cae8e1905b4b0e37fc8aad176c3 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 9 Sep 2025 02:45:27 -0700 Subject: feat: Development commit --- Sora/Views/Post/Grid/PostGridView.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Sora') diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift index 1a55079..978a237 100644 --- a/Sora/Views/Post/Grid/PostGridView.swift +++ b/Sora/Views/Post/Grid/PostGridView.swift @@ -321,8 +321,14 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length } #endif + #if os(macOS) + let placement = ToolbarItemPlacement.navigation + #else + let placement = ToolbarItemPlacement.topBarLeading + #endif + if initialTag == nil { - PlatformSpecificToolbarItem(placement: .navigationBarLeading) { + PlatformSpecificToolbarItem(placement: placement) { Menu { ForEach( Array(manager.searchHistory.enumerated().filter { $0.offset < manager.historyIndex }), @@ -345,7 +351,7 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length .id("previousSearchMenu") } - PlatformSpecificToolbarItem(placement: .navigationBarLeading) { + PlatformSpecificToolbarItem(placement: placement) { Menu { ForEach( Array(manager.searchHistory.enumerated().filter { $0.offset > manager.historyIndex }), -- cgit v1.2.3