From e6a90e18e4d443348b239e39d936ed26de3181a7 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Wed, 12 Oct 2022 11:59:27 -0500 Subject: [PATCH] Add more padding and improve layout of post card --- web/components/post-card.tsx | 51 ++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/web/components/post-card.tsx b/web/components/post-card.tsx index 700f8301..7c268734 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 { Col } from './layout/col' import { Row } from './layout/row' import { UserLink } from './user-link' @@ -22,39 +23,39 @@ export function PostCard(props: { return ( - -
- - - - - {fromNow(post.createdTime)} + + + + + + + + {fromNow(post.createdTime)} + +
+ + Post +
-
+
{post.title}
-
+
{post.subtitle}
-
-
- - - Post - -
+ {onPostClick ? (