diff options
| -rw-r--r-- | Sora/Views/Post/Grid/PostGridView.swift | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift index 0d8b022..ff3fba1 100644 --- a/Sora/Views/Post/Grid/PostGridView.swift +++ b/Sora/Views/Post/Grid/PostGridView.swift @@ -41,7 +41,11 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length PostGridThumbnailPlaceholderView() } } - .padding(.horizontal) + #if os(macOS) + .padding() + #else + .padding(.horizontal) + #endif .transition(.opacity) } else { let columnCount = settings.thumbnailGridColumns @@ -63,7 +67,11 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length } } } - .padding(.horizontal) + #if os(macOS) + .padding() + #else + .padding(.horizontal) + #endif .transition(.opacity) } else { WaterfallGrid(filteredPosts, id: \.id) { post in @@ -71,7 +79,11 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length .id(post.id) } .gridStyle(columns: columnCount) - .padding(.horizontal) + #if os(macOS) + .padding() + #else + .padding(.horizontal) + #endif .transition(.opacity) } } |