[resumes][refactor] add vertical line to replies

pull/405/head
Terence Ho 3 years ago
parent 35494dc7ea
commit a926a53e84

@ -144,16 +144,25 @@ export default function ResumeCommentListItem({
<span>{showReplies ? 'Hide replies' : 'Show replies'}</span> <span>{showReplies ? 'Hide replies' : 'Show replies'}</span>
</button> </button>
{showReplies && {showReplies && (
comment.children.map((child) => { <div className="flex flex-row">
return ( <div className="relative flex flex-col px-2 py-2">
<ResumeCommentListItem <div className="flex-grow border-r border-gray-300" />
key={child.id} </div>
comment={child}
userId={userId} <div className="flex flex-col space-y-1">
/> {comment.children.map((child) => {
); return (
})} <ResumeCommentListItem
key={child.id}
comment={child}
userId={userId}
/>
);
})}
</div>
</div>
)}
</div> </div>
)} )}
</div> </div>

@ -97,7 +97,9 @@ export default function ResumeCommentVoteButtons({
/> />
</button> </button>
<div className="text-xs">{commentVotesQuery.data?.numVotes ?? 0}</div> <div className="flex min-w-[1rem] justify-center text-xs">
{commentVotesQuery.data?.numVotes ?? 0}
</div>
<button <button
disabled={ disabled={

Loading…
Cancel
Save