Increase column size for taskID and createdTime, and decrease Type and Duration (#8594)

This commit is contained in:
Evan Ren 2019-09-27 14:19:04 -07:00 committed by Vadim Ogievetsky
parent e1b4a3ab71
commit 17d9d7daed
2 changed files with 8 additions and 4 deletions

View File

@ -537,7 +537,7 @@ exports[`tasks view matches snapshot 1`] = `
"Header": "Task ID", "Header": "Task ID",
"accessor": "task_id", "accessor": "task_id",
"show": true, "show": true,
"width": 300, "width": 500,
}, },
Object { Object {
"Aggregated": [Function], "Aggregated": [Function],
@ -551,6 +551,7 @@ exports[`tasks view matches snapshot 1`] = `
"Header": "Type", "Header": "Type",
"accessor": "type", "accessor": "type",
"show": true, "show": true,
"width": 140,
}, },
Object { Object {
"Cell": [Function], "Cell": [Function],
@ -570,7 +571,7 @@ exports[`tasks view matches snapshot 1`] = `
"Header": "Created time", "Header": "Created time",
"accessor": "created_time", "accessor": "created_time",
"show": true, "show": true,
"width": 120, "width": 190,
}, },
Object { Object {
"Cell": [Function], "Cell": [Function],
@ -589,6 +590,7 @@ exports[`tasks view matches snapshot 1`] = `
"accessor": "duration", "accessor": "duration",
"filterable": false, "filterable": false,
"show": true, "show": true,
"width": 70,
}, },
Object { Object {
"Aggregated": [Function], "Aggregated": [Function],

View File

@ -741,7 +741,7 @@ ORDER BY "rank" DESC, "created_time" DESC`;
{ {
Header: 'Task ID', Header: 'Task ID',
accessor: 'task_id', accessor: 'task_id',
width: 300, width: 500,
Aggregated: () => '', Aggregated: () => '',
show: hiddenTaskColumns.exists('Task ID'), show: hiddenTaskColumns.exists('Task ID'),
}, },
@ -755,6 +755,7 @@ ORDER BY "rank" DESC, "created_time" DESC`;
{ {
Header: 'Type', Header: 'Type',
accessor: 'type', accessor: 'type',
width: 140,
Cell: row => { Cell: row => {
const value = row.value; const value = row.value;
return ( return (
@ -799,7 +800,7 @@ ORDER BY "rank" DESC, "created_time" DESC`;
{ {
Header: 'Created time', Header: 'Created time',
accessor: 'created_time', accessor: 'created_time',
width: 120, width: 190,
Aggregated: () => '', Aggregated: () => '',
show: hiddenTaskColumns.exists('Created time'), show: hiddenTaskColumns.exists('Created time'),
}, },
@ -866,6 +867,7 @@ ORDER BY "rank" DESC, "created_time" DESC`;
{ {
Header: 'Duration', Header: 'Duration',
accessor: 'duration', accessor: 'duration',
width: 70,
filterable: false, filterable: false,
Cell: row => (row.value > 0 ? formatDuration(row.value) : ''), Cell: row => (row.value > 0 ? formatDuration(row.value) : ''),
Aggregated: () => '', Aggregated: () => '',