Skip to content

Commit

Permalink
fix(ui): stderr new lines + selected task status color
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Mar 19, 2018
1 parent ec44835 commit b949406
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions packages/@vue/cli-ui/src/components/TaskItem.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<template>
<div
class="task-item list-item"
:class="{
selected
}"
:class="[
`status-${task.status}`,
{
selected
}
]"
>
<div class="content">
<ItemLogo
Expand Down Expand Up @@ -68,4 +71,10 @@ export default {
.list-item-info
flex 100% 1 1
width 0
&.selected
&.status-error .list-item-info >>> .name
color $vue-ui-color-danger
&.status-running .list-item-info >>> .name
color $vue-ui-color-info
</style>
2 changes: 1 addition & 1 deletion packages/@vue/cli-ui/src/components/TerminalView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default {
},
setContent (value, ln = true) {
if (ln && value.indexOf('\n') !== -1) {
if (value.indexOf('\n') !== -1) {
value.split('\n').forEach(
t => this.setContent(t)
)
Expand Down

0 comments on commit b949406

Please sign in to comment.