Skip to content

Commit

Permalink
Specify widths on table columns to support long field names
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Mar 23, 2018
1 parent 1fd0558 commit 01347ee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ exports[`Table should render normally 1`] = `
"name": "Name",
"render": [Function],
"sortable": true,
"width": "38%",
},
Object {
"dataType": "string",
Expand Down Expand Up @@ -140,6 +141,7 @@ exports[`Table should render normally 1`] = `
},
],
"name": "",
"width": "40px",
},
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export class Table extends PureComponent {
render: (value) => {
return this.renderFieldName(value, indexPattern.timeFieldName === value);
},
width: '38%',
},
{
field: 'type',
Expand Down Expand Up @@ -126,6 +127,7 @@ export class Table extends PureComponent {
type: 'icon',
},
],
width: '40px',
}
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ exports[`Table should render normally 1`] = `
"field": "displayName",
"name": "Name",
"sortable": true,
"width": "38%",
},
Object {
"dataType": "string",
Expand Down Expand Up @@ -50,6 +51,7 @@ exports[`Table should render normally 1`] = `
},
],
"name": "",
"width": "40px",
},
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export class Table extends PureComponent {
description: `Name of the field`,
dataType: 'string',
sortable: true,
width: '38%',
}, {
field: 'lang',
name: 'Lang',
Expand Down Expand Up @@ -77,6 +78,7 @@ export class Table extends PureComponent {
color: 'danger',
onClick: deleteField,
}],
width: '40px',
}];

const pagination = {
Expand Down

0 comments on commit 01347ee

Please sign in to comment.