Skip to content

Commit

Permalink
[ML] set padding for embeddable panel
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Jul 1, 2020
1 parent ba3b363 commit 98526c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const SwimLanePagination: FC<SwimLanePaginationProps> = ({
});

return (
<EuiFlexGroup justifyContent="spaceBetween" alignItems="center" style={{ margin: 0 }}>
<EuiFlexGroup justifyContent="spaceBetween" alignItems="center">
<EuiFlexItem grow={false}>
<EuiPopover
button={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import React, { FC, useState } from 'react';
import { EuiCallOut, EuiEmptyPrompt } from '@elastic/eui';
import { EuiCallOut } from '@elastic/eui';
import { Observable } from 'rxjs';

import { CoreStart } from 'kibana/public';
Expand Down Expand Up @@ -77,7 +77,10 @@ export const EmbeddableSwimLaneContainer: FC<ExplorerSwimlaneContainerProps> = (
}

return (
<div style={{ width: '100%' }} data-test-subj="mlAnomalySwimlaneEmbeddableWrapper">
<div
style={{ width: '100%', padding: '8px' }}
data-test-subj="mlAnomalySwimlaneEmbeddableWrapper"
>
<SwimlaneContainer
timeBuckets={timeBuckets}
swimlaneData={swimlaneData!}
Expand All @@ -99,16 +102,9 @@ export const EmbeddableSwimLaneContainer: FC<ExplorerSwimlaneContainerProps> = (
}}
isLoading={isLoading}
noDataWarning={
<EuiEmptyPrompt
titleSize="xs"
title={
<h2>
<FormattedMessage
id="xpack.ml.swimlaneEmbeddable.noDataFound"
defaultMessage="No anomalies found"
/>
</h2>
}
<FormattedMessage
id="xpack.ml.swimlaneEmbeddable.noDataFound"
defaultMessage="No anomalies found"
/>
}
/>
Expand Down

0 comments on commit 98526c4

Please sign in to comment.