diff --git a/apps/comments-ui/src/components/Comment.js b/apps/comments-ui/src/components/Comment.js index 41ebf84981..d243fc7006 100644 --- a/apps/comments-ui/src/components/Comment.js +++ b/apps/comments-ui/src/components/Comment.js @@ -21,9 +21,21 @@ const Comment = (props) => { }; const comment = props.comment; + const isReply = props.isReply; const hasReplies = comment.replies && comment.replies.length > 0; const html = {__html: comment.html}; + let commentMarginBottom; + if (!hasReplies) { + commentMarginBottom = 'mb-10'; + } + if (hasReplies) { + commentMarginBottom = 'mb-4'; + } + if (isReply) { + commentMarginBottom = 'mb-10'; + } + if (comment.status !== 'published') { html.__html = 'This comment has been removed.'; } @@ -34,7 +46,7 @@ const Comment = (props) => { ); } else { return ( -