Skip to content

Commit edb5b75

Browse files
authored
Merge pull request #326 from weiran/claude/remove-comment-separator-padding-011CUkWEE8dcKN7SxEuPHG7f
Remove padding from comment separator views
2 parents a725036 + 1daf79b commit edb5b75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Features/Comments/Sources/Comments/CommentsComponents.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ struct CommentsForEach: View {
163163
value: [comment.id: geometry.frame(in: .global)],
164164
)
165165
})
166-
.listRowSeparator(.hidden)
166+
.listRowSeparator(.visible)
167167
.if(comment.voteLinks?.upvote != nil && !comment.upvoted) { view in
168168
view.swipeActions(edge: .leading, allowsFullSwipe: true) {
169169
Button {
@@ -274,7 +274,6 @@ struct CommentRow: View {
274274

275275
var body: some View {
276276
VStack(alignment: .leading, spacing: 8) {
277-
Divider().padding(.bottom, 6)
278277
HStack {
279278
Text(comment.by)
280279
.scaledFont(.subheadline)
@@ -308,11 +307,12 @@ struct CommentRow: View {
308307
.foregroundColor(.primary)
309308
}
310309
}
311-
.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))
312312
.contentShape(Rectangle())
313313
.onTapGesture { onToggle() }
314314
.accessibilityAddTraits(.isButton)
315-
.accessibilityHint(comment.visibility == .visible ? "Double-tap to collapse" : "Double-tap to expand")
315+
.accessibilityHint(comment.visibility == .visible ? "Tap to collapse" : "Tap to expand")
316316
.contextMenu {
317317
VotingContextMenuItems.commentVotingMenuItems(
318318
for: comment,

0 commit comments

Comments
 (0)