@JaneMoroz
Posted
Hello Richard! I love your solution to this challenge ❤️
I think I found a solution to the replies width bug. If you remove the default replies and create new reply you'll see that they are not filling the whole horizontal space.
The reason replies are kinda taking all horizontal space in the second comment (with default replies) is because default replies kinda stretch Replies_repliesContainer
so the new replies (children) just fill the container's width.
So in order to solve this problem you need to make Replies_repliesContainer
take the whole width of it's parent. For example you can add width: 100%
to Replies_repliesContainer
and CommentAndReply_container
. Or you can add flex:1
to Replies_repliesContainer
, this way Replies_repliesContainer
will just take the rest of flex-container space.
Keep it up! And good luck 🍀
P.S. You can also use gap
property to add the space between the vertical line and the reply.
@riwepo
Posted
@JaneMoroz
Thanks heaps for taking the time to look at my code Eugenia! I'm going to go and try and fix it right now.
😊
All fixed! Thanks again.