Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

node logs: break lines #2722

Merged
merged 2 commits into from
Oct 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions js/src/views/Status/components/Debug/Debug.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,18 @@
}

.logs {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the .log class isn't used anymore ; get rid of it?
And also now the logs are white, they used to be gray (#aaa)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, missed that.

width: 100%;
margin: 0;
max-width: 100%;
white-space: pre-line;
word-wrap: break-word;
color: #aaa;
}

.stopped {
color: #aaa;
padding: 1em 0;
}

.log {
margin: 0;
white-space: nowrap;
overflow: visible;
color: #aaa;
}

.container {
width: 100%;
}
Expand Down
12 changes: 3 additions & 9 deletions js/src/views/Status/components/Debug/Debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
}

Expand Down