summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-16 05:44:53 -0700
committerFuwn <[email protected]>2025-06-16 05:44:53 -0700
commitdc902b6ceb9ae4f19494da5358cb166bbd8b29cd (patch)
tree73e756de3885ba1d09633750e414854fd0bd89b2
parentfeat: Development commit (diff)
downloadsora-testing-dc902b6ceb9ae4f19494da5358cb166bbd8b29cd.tar.xz
sora-testing-dc902b6ceb9ae4f19494da5358cb166bbd8b29cd.zip
feat: Development commit
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift18
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)
}
}