Skip to content
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

Merged

Conversation

deepanjali19
Copy link
Contributor

The story containers looks neat and is scrollable! Please let me know if you require any changes 👍

Thanks a lot for the opportunity!

Copy link
Contributor

@seanprashad seanprashad left a 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 }} />
Copy link
Contributor

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 🤠

width: 800px;
height: 380px;
height: 340px;
overflow: scroll;
Copy link
Contributor

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>:

overflow_example

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!

@dnguneratne
Copy link
Contributor

FYI this PR is in conflict / is addressed in PR #20. We should review #20 before merging this.

Copy link
Contributor

@seanprashad seanprashad left a 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:

story_container_final_image_post_pr_update

@seanprashad seanprashad merged commit 8e63e94 into Mera-Gangapersaud:master Nov 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants