Skip to content

Commit

Permalink
fix: break word for long word in editor
Browse files Browse the repository at this point in the history
fixes #47
  • Loading branch information
shuowu committed Jul 10, 2020
1 parent 3e089fa commit b1f7f91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/common/components/MarkdownEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const StyledTextArea = styled(Grid)`
min-height: ${EDITOR_MIN_WIDTH}px;
border: none;
outline: none;
word-break: break-word;
}
& div.markdown-body {
Expand Down
1 change: 1 addition & 0 deletions packages/common/components/MarkdownViewer/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const StyledMarkdownBody = styled.div`
width: -webkit-fill-available;
width: -moz-available;
word-break: break-all;
word-break: break-word;
&.markdown-body .octicon {
display: inline-block;
Expand Down

0 comments on commit b1f7f91

Please sign in to comment.