Skip to content

Commit

Permalink
fix: fix type in AddPost page, fix Post component structure and styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav016 committed Apr 5, 2022
1 parent 2ceed40 commit c4b42b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/components/Post/Post.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.post-card {
min-height: 30vh;
height: fit-content;
width: 40vw;
display: flex;
flex-direction: row;
Expand All @@ -27,9 +25,12 @@

.post-card .post-info {
width: 60%;
height: 20vh;
}

.post-tags {
padding: 0.7vh 0;
}

.read-more {
margin-bottom: 2vh;
}
8 changes: 5 additions & 3 deletions src/components/Post/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ const Post = ({
))}
</div>
{!singlePage && (
<Link to={`${id}`}>
<Button>Read More</Button>
</Link>
<div className='read-more'>
<Link to={`${id}`}>
<Button>Read More</Button>
</Link>
</div>
)}
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/pages/AddPost/AddPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const AddPost = () => {
handleClickTag={handleClickTag}
handleDeleteTag={handleDeleteTag}
clearTagFilters={clearTagFilters}
text={'Clear tags'}
/>
<hr />
<Button type='submit'>Submit Post</Button>
Expand Down

0 comments on commit c4b42b4

Please sign in to comment.