Skip to content

Commit

Permalink
Collapse post content too
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Aug 3, 2024
1 parent b71e01a commit 412e164
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Packages/StatusKit/Sources/StatusKit/Row/StatusRowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,18 @@ public struct StatusRowView: View {
if !isCompact {
StatusRowHeaderView(viewModel: viewModel)
}
StatusRowContentView(viewModel: viewModel)
.contentShape(Rectangle())
.onTapGesture {
handleTap()
}
.accessibilityActions {
if isFocused, viewModel.showActions {
accessibilityActions
if !viewModel.isHierarchyExplicitlyCollapsed {
StatusRowContentView(viewModel: viewModel)
.contentShape(Rectangle())
.onTapGesture {
handleTap()
}
}
.accessibilityActions {
if isFocused, viewModel.showActions {
accessibilityActions
}
}
}
if !reasons.contains(.placeholder),
viewModel.showActions, isFocused || theme.statusActionsDisplay != .none,
!isInCaptureMode
Expand Down

0 comments on commit 412e164

Please sign in to comment.