Skip to content

Commit 1daf79b

Browse files
committed
Improved spacing calculation
1 parent 4878b4b commit 1daf79b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Features/Comments/Sources/Comments/CommentsComponents.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,12 @@ struct CommentRow: View {
307307
.foregroundColor(.primary)
308308
}
309309
}
310-
.listRowInsets(.init(top: 12, leading: CGFloat((comment.level + 1) * 16), bottom: 8, trailing: 16))
310+
.listRowInsets([.top, .bottom, .trailing], 16)
311+
.listRowInsets([.leading], CGFloat((comment.level + 1) * 16))
311312
.contentShape(Rectangle())
312313
.onTapGesture { onToggle() }
313314
.accessibilityAddTraits(.isButton)
314-
.accessibilityHint(comment.visibility == .visible ? "Double-tap to collapse" : "Double-tap to expand")
315+
.accessibilityHint(comment.visibility == .visible ? "Tap to collapse" : "Tap to expand")
315316
.contextMenu {
316317
VotingContextMenuItems.commentVotingMenuItems(
317318
for: comment,

0 commit comments

Comments
 (0)