Skip to content

Commit

Permalink
[Security Solution]Rule preview when returns zero value it overlaps t…
Browse files Browse the repository at this point in the history
…he No results match your search criteria banner. (elastic#151262)
  • Loading branch information
e40pud committed Feb 22, 2023
1 parent 26bd714 commit a32d7d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ const StatefulEventsViewerComponent: React.FC<EventsViewerProps & PropsFromRedux
additionalMenuOptions={additionalRightMenuOptions}
/>

{!hasAlerts && !loading && !graphOverlay && <EmptyTable height="short" />}
{!hasAlerts && !loading && !graphOverlay && <EmptyTable />}
{hasAlerts && (
<FullWidthFlexGroupTable
$visible={!graphEventId && graphOverlay == null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ const panelStyle = {
maxWidth: 500,
};

export const EmptyTable: React.FC<{ height?: keyof typeof heights }> = ({ height = 'tall' }) => {
export const EmptyTable: React.FC = () => {
const { http } = useKibana<CoreStart>().services;

return (
<EuiPanel color="subdued" data-test-subj="tGridEmptyState">
<EuiFlexGroup style={{ height: heights[height] }} alignItems="center" justifyContent="center">
<EuiFlexGroup alignItems="center" justifyContent="center">
<EuiFlexItem grow={false}>
<EuiPanel hasBorder={true} style={panelStyle}>
<EuiFlexGroup>
Expand Down

0 comments on commit a32d7d6

Please sign in to comment.