Skip to content

Commit 75ba9d9

Browse files
committed
making the column width for : also dynamic
1 parent 7bec814 commit 75ba9d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/helpers/sync/syncSpecsLogs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let specSummary = {
1313
"specs": [],
1414
"duration": null
1515
}
16-
let terminalWidth = (process.stdout.columns) * 0.9;
16+
let terminalWidth = (process.stdout.columns);
1717

1818
let getOptions = (auth, build_id) => {
1919
return {
@@ -34,8 +34,8 @@ let getTableConfig = () => {
3434
return {
3535
border: getBorderConfig(),
3636
columns: {
37-
1: {alignment: 'center', width: 1},
38-
2: {alignment: 'left', width: Math.floor(terminalWidth * 0.8)}
37+
1: {alignment: 'center', width: Math.ceil(terminalWidth * 0.01)},
38+
2: {alignment: 'left', width: Math.floor(terminalWidth * 0.70)}
3939
},
4040
columnDefault: {
4141
width: Math.floor(terminalWidth * 0.2),

0 commit comments

Comments
 (0)