Skip to content

Commit 59d1fd5

Browse files
committed
fix: add margin for comment children
Signed-off-by: Innei <[email protected]>
1 parent 1c74c89 commit 59d1fd5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/components/widgets/comment/Comment.tsx

+7-5
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,13 @@ export const Comment: Component<{
119119

120120
<CommentBoxHolderProvider />
121121
</CommentHolderContext.Provider>
122-
{comment.children &&
123-
comment.children.length > 0 &&
124-
comment.children.map((child) => (
125-
<Comment key={child.id} comment={child} className="ml-9" />
126-
))}
122+
{comment.children && comment.children.length > 0 && (
123+
<ul className="my-2 space-y-2">
124+
{comment.children.map((child) => (
125+
<Comment key={child.id} comment={child} className="ml-9" />
126+
))}
127+
</ul>
128+
)}
127129
</>
128130
)
129131
})

0 commit comments

Comments
 (0)