Skip to content

Commit

Permalink
fix: add margin for comment children
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jun 28, 2023
1 parent 1c74c89 commit 59d1fd5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/widgets/comment/Comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@ export const Comment: Component<{

<CommentBoxHolderProvider />
</CommentHolderContext.Provider>
{comment.children &&
comment.children.length > 0 &&
comment.children.map((child) => (
<Comment key={child.id} comment={child} className="ml-9" />
))}
{comment.children && comment.children.length > 0 && (
<ul className="my-2 space-y-2">
{comment.children.map((child) => (
<Comment key={child.id} comment={child} className="ml-9" />
))}
</ul>
)}
</>
)
})
Expand Down

1 comment on commit 59d1fd5

@vercel
Copy link

@vercel vercel bot commented on 59d1fd5 Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

springtide – ./

springtide-git-main-innei.vercel.app
springtide.vercel.app
innei.in
springtide-innei.vercel.app

Please sign in to comment.