merge #2722 from logs-break-lines

node logs: break lines
This commit is contained in:
Jannis Redmann 2016-10-19 15:17:55 +02:00 committed by GitHub
commit 60c01e8cc3
2 changed files with 8 additions and 17 deletions

View File

@ -37,7 +37,11 @@
} }
.logs { .logs {
width: 100%; margin: 0;
max-width: 100%;
white-space: pre-line;
word-wrap: break-word;
color: #aaa;
} }
.stopped { .stopped {
@ -45,13 +49,6 @@
padding: 1em 0; padding: 1em 0;
} }
.log {
margin: 0;
white-space: nowrap;
overflow: visible;
color: #aaa;
}
.container { .container {
width: 100%; width: 100%;
} }

View File

@ -72,16 +72,10 @@ export default class Debug extends Component {
return null; return null;
} }
const logs = devLogs.map((log, idx) => (
<pre className={ styles.log } key={ idx }>
{ log }
</pre>
));
return ( return (
<div className={ styles.logs }> <pre className={ styles.logs }>
{ logs } { devLogs.join('\n') }
</div> </pre>
); );
} }