Collapse post content too

This commit is contained in:
fwcd 2024-08-03 04:17:50 +02:00
parent b71e01a7a5
commit 412e16471b

View file

@ -86,6 +86,7 @@ public struct StatusRowView: View {
if !isCompact { if !isCompact {
StatusRowHeaderView(viewModel: viewModel) StatusRowHeaderView(viewModel: viewModel)
} }
if !viewModel.isHierarchyExplicitlyCollapsed {
StatusRowContentView(viewModel: viewModel) StatusRowContentView(viewModel: viewModel)
.contentShape(Rectangle()) .contentShape(Rectangle())
.onTapGesture { .onTapGesture {
@ -96,6 +97,7 @@ public struct StatusRowView: View {
accessibilityActions accessibilityActions
} }
} }
}
if !reasons.contains(.placeholder), if !reasons.contains(.placeholder),
viewModel.showActions, isFocused || theme.statusActionsDisplay != .none, viewModel.showActions, isFocused || theme.statusActionsDisplay != .none,
!isInCaptureMode !isInCaptureMode