Skip to content

Commit 07d8246

Browse files
author
pooya parsa
committedMay 26, 2019
feat: always hide right side on width < 80
1 parent 812729a commit 07d8246

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/reporters/basic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default class BasicReporter {
5959

6060
log (logObj, { async, stdout, stderr } = {}) {
6161
const line = this.formatLogObj(logObj, {
62-
width: stdout.columns ? (stdout.columns - 1) : 0
62+
width: stdout.columns || 0
6363
})
6464

6565
return writeStream(

‎src/reporters/fancy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class FancyReporter extends BasicReporter {
7070
const right = this.filterAndJoin([tag, date])
7171
const space = width - stringWidth(left) - stringWidth(right) - 2
7272

73-
if (space > 0) {
73+
if (space > 0 && width >= 80) {
7474
line = left + ' '.repeat(space) + right
7575
} else {
7676
line = left

0 commit comments

Comments
 (0)
Please sign in to comment.