summaryrefslogtreecommitdiff
path: root/Sora/Views/Post
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-25 17:17:40 -0800
committerFuwn <[email protected]>2025-02-25 17:17:40 -0800
commit398eff7fbcda4145421f8e6adc7c789ec181f00e (patch)
tree080fb9b2793c29140c7f441551612acdd8b28ed0 /Sora/Views/Post
parentfeat: Development commit (diff)
downloadsora-testing-398eff7fbcda4145421f8e6adc7c789ec181f00e.tar.xz
sora-testing-398eff7fbcda4145421f8e6adc7c789ec181f00e.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Post')
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift32
1 files changed, 13 insertions, 19 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index 9e8edd6..5f8611a 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -22,25 +22,19 @@ struct PostGridView: View {
}
WaterfallGrid(filteredPosts, id: \.id) { post in
- Group {
- #if os(macOS)
- Button {
- manager.selectedPost = post
- } label: {
- PostGridThumbnailView(
- post: post,
- posts: filteredPosts
- )
- }
- .buttonStyle(PlainButtonStyle())
- #else
- NavigationLink(value: post) {
- PostGridThumbnailView(
- post: post,
- posts: filteredPosts
- )
- }
- #endif
+ Button {
+ manager.selectedPost = post
+ } label: {
+ PostGridThumbnailView(
+ post: post,
+ posts: filteredPosts
+ )
+ }
+ .buttonStyle(PlainButtonStyle())
+ .contextMenu {
+ Button(action: { manager.selectedPost = post }) {
+ Label("Select Post", systemImage: "arrow.right.circle")
+ }
}
}
.gridStyle(columns: settings.columns)