diff options
| author | Fuwn <[email protected]> | 2025-06-16 05:44:53 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-16 05:44:53 -0700 |
| commit | dc902b6ceb9ae4f19494da5358cb166bbd8b29cd (patch) | |
| tree | 73e756de3885ba1d09633750e414854fd0bd89b2 | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-dc902b6ceb9ae4f19494da5358cb166bbd8b29cd.tar.xz sora-testing-dc902b6ceb9ae4f19494da5358cb166bbd8b29cd.zip | |
feat: Development commit
| -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) } } |