Fix username link

This commit is contained in:
Austin Chen 2022-03-15 12:22:21 -07:00
parent db7eee495c
commit f17c4ac40f

View File

@ -685,8 +685,8 @@ function FeedAnswerGroup(props: {
const { username, avatarUrl, userId, name, text } = answer const { username, avatarUrl, userId, name, text } = answer
return ( return (
<Col className="gap-2 flex-1"> <Col className="flex-1 gap-2">
<Row className="gap-3 mb-4"> <Row className="mb-4 gap-3">
<div className="px-1"> <div className="px-1">
<div className="flex h-8 w-8 items-center justify-center rounded-full bg-gray-200"> <div className="flex h-8 w-8 items-center justify-center rounded-full bg-gray-200">
<Avatar username={username} avatarUrl={avatarUrl} /> <Avatar username={username} avatarUrl={avatarUrl} />
@ -694,7 +694,7 @@ function FeedAnswerGroup(props: {
</div> </div>
<Col className="min-w-0 flex-1 gap-2"> <Col className="min-w-0 flex-1 gap-2">
<div className="text-sm text-gray-500"> <div className="text-sm text-gray-500">
<UserLink username={userId} name={name} /> answered <UserLink username={username} name={name} /> answered
</div> </div>
<Linkify text={text} /> <Linkify text={text} />
</Col> </Col>