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
) (elastic#50740)

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

* Switch to table-layout fix
  • Loading branch information
Zacqary authored Nov 18, 2019
1 parent 83acead commit 2df0684
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 { LogRateResults } from '../../../../../containers/logs/log_analysis/log_analysis_results';
import { AnomaliesTableExpandedRow } from './expanded_row';
import { formatAnomalyScore, getFriendlyNameForPartitionId } from '../helpers/data_formatters';
import euiStyled from '../../../../../../../../common/eui_styled_components';

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

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

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

0 comments on commit 2df0684

Please sign in to comment.