Skip to content

Commit

Permalink
[ML] Fix word break in anomalies and jobs tables (#26978)
Browse files Browse the repository at this point in the history
  • Loading branch information
peteharverson authored and chrisronline committed Dec 12, 2018
1 parent 3ce9b6d commit 9ce4417
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function getColumns(
name: 'time',
dataType: 'date',
render: (date) => renderTime(date, interval),
textOnly: true,
sortable: true
},
{
Expand All @@ -113,6 +114,7 @@ function getColumns(
numberOfRules={item.rulesLength}
/>
),
textOnly: true,
sortable: true
}
];
Expand All @@ -128,6 +130,7 @@ function getColumns(
filter={filter}
/>
),
textOnly: true,
sortable: true
});
}
Expand All @@ -142,6 +145,7 @@ function getColumns(
influencers={influencers}
/>
),
textOnly: true,
sortable: true
});
}
Expand Down Expand Up @@ -188,6 +192,7 @@ function getColumns(
typical={item.typical}
/>
),
textOnly: true,
sortable: true
});
}
Expand Down Expand Up @@ -240,7 +245,8 @@ function getColumns(
)}
</EuiText>
);
}
},
textOnly: true,
});
}

Expand Down Expand Up @@ -390,7 +396,7 @@ class AnomaliesTable extends Component {
unsetShowFunction={this.unsetShowRuleEditorFlyoutFunction}
/>
<EuiInMemoryTable
className="ml-anomalies-table eui-textBreakWord"
className="ml-anomalies-table eui-textOverflowWrap"
items={tableData.anomalies}
columns={columns}
pagination={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ class ForecastsTableUI extends Component {
}),
dataType: 'date',
render: (date) => formatDate(date, TIME_FORMAT),
textOnly: true,
sortable: true
},
{
Expand All @@ -201,6 +202,7 @@ class ForecastsTableUI extends Component {
}),
dataType: 'date',
render: (date) => formatDate(date, TIME_FORMAT),
textOnly: true,
sortable: true
},
{
Expand All @@ -211,6 +213,7 @@ class ForecastsTableUI extends Component {
}),
dataType: 'date',
render: (date) => formatDate(date, TIME_FORMAT),
textOnly: true,
sortable: true
},
{
Expand Down Expand Up @@ -250,6 +253,7 @@ class ForecastsTableUI extends Component {
defaultMessage: 'Expires'
}),
render: (date) => formatDate(date, TIME_FORMAT),
textOnly: true,
sortable: true
},
{
Expand All @@ -267,7 +271,8 @@ class ForecastsTableUI extends Component {
})}
</div>
);
}
},
textOnly: true,
},
{
name: intl.formatMessage({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ class JobsListUI extends Component {
field: 'description',
render: (description, item) => (
<JobDescription job={item} />
)
),
textOnly: true,
}, {
field: 'processed_record_count',
name: intl.formatMessage({
Expand Down

0 comments on commit 9ce4417

Please sign in to comment.