summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Details
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/Post/Details')
-rw-r--r--Sora/Views/Post/Details/PostDetailsView.swift4
1 files changed, 3 insertions, 1 deletions
diff --git a/Sora/Views/Post/Details/PostDetailsView.swift b/Sora/Views/Post/Details/PostDetailsView.swift
index e040bc3..108f12c 100644
--- a/Sora/Views/Post/Details/PostDetailsView.swift
+++ b/Sora/Views/Post/Details/PostDetailsView.swift
@@ -119,7 +119,9 @@ struct PostDetailsView: View {
}
.sheet(isPresented: $isTagsSheetPresented) {
PostDetailsTagsView(isPresented: $isTagsSheetPresented, tags: post.tags)
- .frame(minHeight: 250)
+ #if os(macOS)
+ .frame(minHeight: (NSScreen.main?.frame.height ?? 1_080) / 2, maxHeight: .infinity)
+ #endif
}
}
}