-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for issue #13 - Improved story container #19
Fix for issue #13 - Improved story container #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is G R E A T @deepanjali19! 👏🏽 We have two small things that we can fix up and this should be good to go after that!
Please let us know if anything is unclear 😺
@@ -28,14 +28,14 @@ class CreativeCollab extends React.Component { | |||
this.firstEditor = instance; | |||
}} | |||
/> | |||
<div className="story-container" dangerouslySetInnerHTML={{ __html: this.state.story }} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet - the story box is right where it should be 🤠
src/CreativeCollab.css
Outdated
width: 800px; | ||
height: 380px; | ||
height: 340px; | ||
overflow: scroll; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! We might want to use overflow-y: auto
instead as it will automatically show the vertical scroller if the text exceeds the height of the <div>
:
You'll also notice that the message wraps to the next line and doesn't show a horizontal scroll bar - let's also add overflow-wrap: break-word;
which does just that!
413bc52
to
3694f99
Compare
3694f99
to
462c428
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To save @deepanjali19 a very big headache of fixing the package-lock.json
problem, I went ahead and update it alongside two things to polish up.
Here's what it looks locally:
The story containers looks neat and is scrollable! Please let me know if you require any changes 👍
Thanks a lot for the opportunity!