table filter and icons enhancements

Summary:
- Allows alignment of table columns
- fixes display of lager numbers in log counts
- fixes the alignment of `FilterRow`

Reviewed By: priteshrnandgaonkar

Differential Revision: D9850598

fbshipit-source-id: 106f4dc6a422f58e090f97857bd7be02e7c2c1d2
This commit is contained in:
Daniel Büchele
2018-09-21 10:30:12 -07:00
committed by Facebook Github Bot
parent 9ef8d32053
commit ab4f4ed02b
4 changed files with 22 additions and 12 deletions

View File

@@ -73,6 +73,7 @@ const TableBodyColumnContainer = styled('div')(props => ({
wordWrap: props.multiline ? 'break-word' : 'normal',
width: props.width === 'flex' ? '100%' : props.width,
maxWidth: '100%',
justifyContent: props.justifyContent,
}));
type Props = {
@@ -143,6 +144,7 @@ export default class TableRow extends React.PureComponent<Props> {
key={key}
title={title}
multiline={multiline}
justifyContent={col.align || 'flex-start'}
width={normaliseColumnWidth(columnSizes[key])}>
{isFilterable && onAddFilter != null ? (
<FilterRow addFilter={onAddFilter} filterKey={key}>