Skip to content

Commit ae8b694

Browse files
committed
The status lozenge takes too much space at the top.
1 parent ac4a175 commit ae8b694

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

public/pages/Home/components/ListPosts.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ const ListPostItem = (props: { post: Post; user?: CurrentUser; tags: Tag[]; onPo
2929
return (
3030
<a href={`/posts/${props.post.number}/${props.post.slug}`} className="c-posts-container__post-link" onClick={handleClick}>
3131
<VStack className="c-posts-container__post w-full" spacing={4}>
32-
{props.post.status !== "open" && (
33-
<div className="mb-1 align-self-start">
34-
<ResponseLozenge status={props.post.status} response={props.post.response} size={"small"} />
35-
</div>
36-
)}
3732
<HStack justify="between" align="start">
3833
<HStack spacing={2} align="start" className="w-full">
3934
<h3 className="c-posts-container__post-title text-break">{props.post.title}</h3>
@@ -58,10 +53,13 @@ const ListPostItem = (props: { post: Post; user?: CurrentUser; tags: Tag[]; onPo
5853
))}
5954
</HStack>
6055
)}
61-
<div className="c-posts-container__post-votes">
62-
<span className="text-semibold text-2xl">{props.post.votesCount}</span>{" "}
63-
<span className="text-gray-700">{props.post.votesCount === 1 ? <Trans id="label.vote">Vote</Trans> : <Trans id="label.votes">Votes</Trans>}</span>
64-
</div>
56+
<HStack justify="between" align="center">
57+
<div className="c-posts-container__post-votes">
58+
<span className="text-semibold text-2xl">{props.post.votesCount}</span>{" "}
59+
<span className="text-gray-700">{props.post.votesCount === 1 ? <Trans id="label.vote">Vote</Trans> : <Trans id="label.votes">Votes</Trans>}</span>
60+
</div>
61+
{props.post.status !== "open" && <ResponseLozenge status={props.post.status} response={props.post.response} size={"small"} />}
62+
</HStack>
6563
</VStack>
6664
</a>
6765
)

0 commit comments

Comments
 (0)