From f123ffa7e2fd052b40a8b8639a0c6629618d55db Mon Sep 17 00:00:00 2001 From: Terence <45381509+Vielheim@users.noreply.github.com> Date: Fri, 21 Oct 2022 17:56:35 +0800 Subject: [PATCH] [resumes][refactor] Comment UI touchup (#405) * [resumes][refactor] add vertical line to replies * [resumes][refactor] sort replies ascending Co-authored-by: Terence Ho <> --- .../comments/ResumeCommentListItem.tsx | 29 ++++++++++++------- .../comment/ResumeCommentVoteButtons.tsx | 4 ++- .../router/resumes/resumes-comments-router.ts | 2 +- 3 files changed, 23 insertions(+), 12 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} +