From fd7d4eb5e274b70e4e8fac9504d3314d8fd7f371 Mon Sep 17 00:00:00 2001 From: Pico2x Date: Wed, 12 Oct 2022 17:21:58 +0100 Subject: [PATCH] Make post-cards consistent with contract cards --- web/components/post-card.tsx | 37 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/web/components/post-card.tsx b/web/components/post-card.tsx index 50b378e6..f3e673fb 100644 --- a/web/components/post-card.tsx +++ b/web/components/post-card.tsx @@ -8,6 +8,7 @@ import { fromNow } from 'web/lib/util/time' import { Avatar } from './avatar' import { Card } from './card' import { CardHighlightOptions } from './contract/contracts-grid' +import { Row } from './layout/row' import { UserLink } from './user-link' export function PostCard(props: { @@ -19,30 +20,28 @@ export function PostCard(props: { const { itemIds: itemIds, highlightClassName } = highlightOptions || {} return ( -
- -
- -
+ +
-
+ + - - {fromNow(post.createdTime)} -
-
+ + {fromNow(post.createdTime)} + +
{post.title}
-
+
{post.subtitle}
@@ -52,7 +51,7 @@ export function PostCard(props: { Post
- + {onPostClick ? ( )} -
+
) }