Improve profile comments vis d

This commit is contained in:
Sinclair Chen 2022-08-12 12:10:45 -07:00
parent 88535e5512
commit 20ab313c6c

View File

@ -27,20 +27,22 @@ export function UserCommentsList(props: {
{Object.entries(commentsByContract).map(([contractId, comments]) => { {Object.entries(commentsByContract).map(([contractId, comments]) => {
const contract = contractsById[contractId] const contract = contractsById[contractId]
return ( return (
<div key={contractId} className={'border-width-1 border-b p-5'}> <div key={contractId} className="border-b p-5">
<SiteLink <SiteLink
className={'mb-2 block text-sm text-indigo-700'} className="mb-2 block pb-2 font-medium text-indigo-700"
href={contractPath(contract)} href={contractPath(contract)}
> >
{contract.question} {contract.question}
</SiteLink> </SiteLink>
{comments.map((comment) => ( <Col className="gap-6">
<ProfileComment {comments.map((comment) => (
key={comment.id} <ProfileComment
comment={comment} key={comment.id}
className="relative flex items-start space-x-3 pb-6" comment={comment}
/> className="relative flex items-start space-x-3"
))} />
))}
</Col>
</div> </div>
) )
})} })}