From c4b42b40677617acbf32855937695193df5d6f3f Mon Sep 17 00:00:00 2001 From: Pranav Date: Tue, 5 Apr 2022 19:16:35 +0530 Subject: [PATCH] fix: fix type in AddPost page, fix Post component structure and styling --- src/components/Post/Post.css | 7 ++++--- src/components/Post/Post.tsx | 8 +++++--- src/pages/AddPost/AddPost.tsx | 1 + 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/Post/Post.css b/src/components/Post/Post.css index 10b769b..7fea0ee 100644 --- a/src/components/Post/Post.css +++ b/src/components/Post/Post.css @@ -1,6 +1,4 @@ .post-card { - min-height: 30vh; - height: fit-content; width: 40vw; display: flex; flex-direction: row; @@ -27,9 +25,12 @@ .post-card .post-info { width: 60%; - height: 20vh; } .post-tags { padding: 0.7vh 0; } + +.read-more { + margin-bottom: 2vh; +} diff --git a/src/components/Post/Post.tsx b/src/components/Post/Post.tsx index f3266f3..b9835bc 100644 --- a/src/components/Post/Post.tsx +++ b/src/components/Post/Post.tsx @@ -71,9 +71,11 @@ const Post = ({ ))} {!singlePage && ( - - - +
+ + + +
)} diff --git a/src/pages/AddPost/AddPost.tsx b/src/pages/AddPost/AddPost.tsx index 0c78594..caf4b17 100644 --- a/src/pages/AddPost/AddPost.tsx +++ b/src/pages/AddPost/AddPost.tsx @@ -87,6 +87,7 @@ const AddPost = () => { handleClickTag={handleClickTag} handleDeleteTag={handleDeleteTag} clearTagFilters={clearTagFilters} + text={'Clear tags'} />