Skip to content

Commit

Permalink
[ML] align layout for anomaly detection
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Nov 1, 2019
1 parent a28d562 commit 1fd369d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,3 @@
.job-management {
padding: 20px;
}

.job-buttons-container {
float: right;
}

.clear {
clear: both;
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiSpacer,
EuiTitle,
} from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';


let jobsRefreshInterval = null;
Expand Down Expand Up @@ -443,30 +445,41 @@ export class JobsListView extends Component {

return (
<React.Fragment>
<JobStatsBar
jobsSummaryList={jobsSummaryList}
/>
<div className="job-management" data-test-subj="ml-jobs-list">
<EuiTitle>
<h1>
<FormattedMessage
id="xpack.ml.jobsList.title"
defaultMessage="Anomaly Detection"
/>
</h1>
</EuiTitle>

<NodeAvailableWarning />

<UpgradeWarning />
<header>
<div className="job-buttons-container">
<EuiFlexGroup alignItems="center">

<EuiFlexGroup justifyContent="spaceBetween">
<EuiFlexItem grow={false}>
<JobStatsBar
jobsSummaryList={jobsSummaryList}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiFlexGroup alignItems="center" gutterSize="s">
<EuiFlexItem grow={false}>
<RefreshJobsListButton
onRefreshClick={this.onRefreshClick}
isRefreshing={isRefreshing}
/>
</EuiFlexItem>
{isManagementTable === undefined &&
<EuiFlexItem grow={false}>
<NewJobButton />
</EuiFlexItem>}
<EuiFlexItem grow={false}>
<NewJobButton />
</EuiFlexItem>}
</EuiFlexGroup>
</div>
</header>

<div className="clear" />
</EuiFlexItem>
</EuiFlexGroup>

<EuiSpacer size="s" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@

// Refresh button style

.job-buttons-container {
float: right;
}

.managementJobsList{
clear: both;
}
Expand Down

0 comments on commit 1fd369d

Please sign in to comment.