Skip to content

Commit

Permalink
Fix bug where posts couldn't be made with line breaks in text
Browse files Browse the repository at this point in the history
  • Loading branch information
markohanesian committed Aug 9, 2024
1 parent 8947557 commit 5143642
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Building ReactSocial involved several major steps. Initially, I set up the React
✅ = fixed
🚧 = in progress

* Posts can't be made with line breaks
* Posts can't be made unless with a picture
* Posts can't be made unless with a picture 🚧
* Posts can't be made with line breaks ✅
* Comments not working ✅
* User posts page links to entire post ✅
* Delete your own posts! ✅
Expand Down
3 changes: 2 additions & 1 deletion src/components/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const PostPhotoUrl = {
};

const PostTextCaption = {
color: "white"
color: "white",
whiteSpace: "pre-wrap",
};

const DeleteButtonStyle = {
Expand Down

0 comments on commit 5143642

Please sign in to comment.