diff options
| author | Fuwn <[email protected]> | 2025-02-26 21:48:41 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-26 21:48:41 -0800 |
| commit | 84d626b578ac892428faabdf722d7b3f2649ed0d (patch) | |
| tree | 6629dcdb04c4c20bec92bb20b0f30a63085bec79 | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-84d626b578ac892428faabdf722d7b3f2649ed0d.tar.xz sora-testing-84d626b578ac892428faabdf722d7b3f2649ed0d.zip | |
feat: Development commit
| -rw-r--r-- | Sora/Views/Post/Details/PostDetailsView.swift | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Sora/Views/Post/Details/PostDetailsView.swift b/Sora/Views/Post/Details/PostDetailsView.swift index aec0b34..578f59f 100644 --- a/Sora/Views/Post/Details/PostDetailsView.swift +++ b/Sora/Views/Post/Details/PostDetailsView.swift @@ -44,7 +44,7 @@ struct PostDetailsView: View { VStack(spacing: 5) { HStack { Text(post.createdAt.formatted()) - .frame(maxWidth: .infinity, alignment: .leading) + .frame(maxWidth: .infinity, alignment: .leading) Group { switch loadingStage { @@ -80,17 +80,17 @@ struct PostDetailsView: View { .navigationBarTitleDisplayMode(.inline) .toolbarBackground(.visible, for: .navigationBar) .toolbarBackground(.ultraThinMaterial, for: .navigationBar) -#endif - .toolbar { - ToolbarItem { - Button(action: { - isTagsSheetPresented.toggle() - }) { - Label("Tags", systemImage: "tag") - } + #endif + .toolbar { + ToolbarItem { + Button(action: { + isTagsSheetPresented.toggle() + }) { + Label("Tags", systemImage: "tag") } + } -#if os(macOS) + #if os(macOS) if settings.enableShareShortcut { ToolbarItem { ShareLink(item: imageURL!) { @@ -98,10 +98,10 @@ struct PostDetailsView: View { } } } -#endif - } - .sheet(isPresented: $isTagsSheetPresented) { - PostDetailsTagsView(isPresented: $isTagsSheetPresented, tags: post.tags) - } + #endif + } + .sheet(isPresented: $isTagsSheetPresented) { + PostDetailsTagsView(isPresented: $isTagsSheetPresented, tags: post.tags) + } } } |