node logs: break lines

This commit is contained in:
Jannis R 2016-10-19 13:36:08 +02:00
parent fcac518644
commit 6c6ad6d660
No known key found for this signature in database
GPG Key ID: 0FE83946296A88A5
2 changed files with 6 additions and 10 deletions

View File

@ -37,7 +37,9 @@
}
.logs {
width: 100%;
max-width: 100%;
white-space: pre-line;
word-wrap: break-word;
}
.stopped {

View File

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