Skip to content

Commit 531a595

Browse files
author
Brian Vaughn
committed
Re-enabled pre-wrap
1 parent 540c8c8 commit 531a595

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-dev-utils/webpackHotDevClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function addOverlayDivTo(iframe) {
6262
div.style.fontSize = '10px';
6363
div.style.padding = '2rem';
6464
div.style.lineHeight = '1.2';
65-
div.style.whiteSpace = 'pre';
65+
div.style.whiteSpace = 'pre-wrap';
6666
div.style.overflow = 'auto';
6767
iframe.contentDocument.body.appendChild(div);
6868
return div;

packages/react-error-overlay/src/styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const preStyle = {
122122
'margin-top': '0.5em',
123123
'margin-bottom': '0.5em',
124124
'overflow-x': 'auto',
125-
'white-space': 'pre',
125+
'white-space': 'pre-wrap',
126126
'border-radius': '0.25rem',
127127
'background-color': 'rgba(206, 17, 38, .05)',
128128
};

0 commit comments

Comments
 (0)