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

Commit bd8d291

Browse files
add spacing between like count in image posts
1 parent b9d6521 commit bd8d291

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/src/components/ImagePost.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ const ImagePost = ({title, body, datePosted, image, previewImage, liked, publicI
181181
</>
182182
:
183183
<>
184+
<br/>
184185
<div style={{display: 'flex', justifyContent: 'left', alignItems: 'center'}}>
185186
<FontAwesomeIcon
186187
icon={liked ? fasHeart : farHeart}
@@ -189,6 +190,7 @@ const ImagePost = ({title, body, datePosted, image, previewImage, liked, publicI
189190
/>
190191
<h3 style={{margin: 0, marginLeft: 10}}>{likeCount} {likeCount === 1 ? 'like' : 'likes'}</h3>
191192
</div>
193+
<br/>
192194
<h4 style={{marginTop: 10, marginBottom: 5}}>Posted {calculateDifferenceBetweenNowAndUTCMillisecondsTime(datePosted)}</h4>
193195
{edited && <h4 style={{margin: 0}}>Edited {calculateDifferenceBetweenNowAndUTCMillisecondsTime(dateEdited)}</h4>}
194196
</>

0 commit comments

Comments
 (0)