Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
add spacing between like count in image posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Sep 18, 2022
1 parent b9d6521 commit bd8d291
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/components/ImagePost.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ const ImagePost = ({title, body, datePosted, image, previewImage, liked, publicI
</>
:
<>
<br/>
<div style={{display: 'flex', justifyContent: 'left', alignItems: 'center'}}>
<FontAwesomeIcon
icon={liked ? fasHeart : farHeart}
Expand All @@ -189,6 +190,7 @@ const ImagePost = ({title, body, datePosted, image, previewImage, liked, publicI
/>
<h3 style={{margin: 0, marginLeft: 10}}>{likeCount} {likeCount === 1 ? 'like' : 'likes'}</h3>
</div>
<br/>
<h4 style={{marginTop: 10, marginBottom: 5}}>Posted {calculateDifferenceBetweenNowAndUTCMillisecondsTime(datePosted)}</h4>
{edited && <h4 style={{margin: 0}}>Edited {calculateDifferenceBetweenNowAndUTCMillisecondsTime(dateEdited)}</h4>}
</>
Expand Down

0 comments on commit bd8d291

Please sign in to comment.