From a926a53e84791d00a4235d5ea2182af06c7ed4ef Mon Sep 17 00:00:00 2001 From: Terence Ho <> Date: Fri, 21 Oct 2022 16:37:26 +0800 Subject: [PATCH] [resumes][refactor] add vertical line to replies --- .../comments/ResumeCommentListItem.tsx | 29 ++++++++++++------- .../comment/ResumeCommentVoteButtons.tsx | 4 ++- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx b/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx index abf00a62..5561a49e 100644 --- a/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx +++ b/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx @@ -144,16 +144,25 @@ export default function ResumeCommentListItem({ {showReplies ? 'Hide replies' : 'Show replies'} - {showReplies && - comment.children.map((child) => { - return ( - - ); - })} + {showReplies && ( +
+
+
+
+ +
+ {comment.children.map((child) => { + return ( + + ); + })} +
+
+ )}
)} diff --git a/apps/portal/src/components/resumes/comments/comment/ResumeCommentVoteButtons.tsx b/apps/portal/src/components/resumes/comments/comment/ResumeCommentVoteButtons.tsx index ac633e92..e17e2546 100644 --- a/apps/portal/src/components/resumes/comments/comment/ResumeCommentVoteButtons.tsx +++ b/apps/portal/src/components/resumes/comments/comment/ResumeCommentVoteButtons.tsx @@ -97,7 +97,9 @@ export default function ResumeCommentVoteButtons({ /> -
{commentVotesQuery.data?.numVotes ?? 0}
+
+ {commentVotesQuery.data?.numVotes ?? 0} +