Skip to content

Commit

Permalink
[Logs UI] Add IE11-specific CSS fixes for anomalies table (elastic#49980
Browse files Browse the repository at this point in the history
)

* [Logs UI] Add IE11-specific CSS fixes for anomalies table

* Switch to table-layout fix
  • Loading branch information
Zacqary committed Nov 14, 2019
1 parent ceec158 commit 0ad6118
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { TimeRange } from '../../../../../../common/http_api/shared/time_range';
import { GetLogEntryRateSuccessResponsePayload } from '../../../../../../common/http_api/log_analysis/results/log_entry_rate';
import { AnomaliesTableExpandedRow } from './expanded_row';
import { getTopAnomalyScoresByPartition, formatAnomalyScore } from '../helpers/data_formatters';
import euiStyled from '../../../../../../../../common/eui_styled_components';

interface TableItem {
id: string;
Expand Down Expand Up @@ -151,7 +152,7 @@ export const AnomaliesTable: React.FunctionComponent<{
];

return (
<EuiBasicTable
<StyledEuiBasicTable
items={sortedTableItems}
itemId="id"
itemIdToExpandedRowMap={itemIdToExpandedRowMap}
Expand All @@ -163,3 +164,9 @@ export const AnomaliesTable: React.FunctionComponent<{
/>
);
};

const StyledEuiBasicTable = euiStyled(EuiBasicTable)`
& .euiTable {
table-layout: auto;
}
`;

0 comments on commit 0ad6118

Please sign in to comment.