Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit bd655a8

Browse files
vgmoosesatya164
authored andcommitted
fix: wrap around long lines with no spaces (react-simple-code-editor#24)
1 parent e18663d commit bd655a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ const styles = {
586586
textAlign: 'left',
587587
whiteSpace: 'pre-wrap',
588588
wordBreak: 'keep-all',
589+
overflowWrap: 'break-word',
589590
boxSizing: 'border-box',
590591
padding: 0,
591592
overflow: 'hidden',
@@ -626,5 +627,6 @@ const styles = {
626627
textTransform: 'inherit',
627628
whiteSpace: 'inherit',
628629
wordBreak: 'inherit',
630+
overflowWrap: 'inherit',
629631
},
630632
};

0 commit comments

Comments
 (0)