mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ML] Ensure Job list search bar is aligned + prevent job actions from wrapping (#24334)
* display:none when no jobs selected * Prevent job actions from wrapping * wrap condition in paren
This commit is contained in:
parent
4a45224d6a
commit
67e9bc4bfd
2 changed files with 8 additions and 2 deletions
|
@ -24,9 +24,10 @@ export class MultiJobActions extends Component {
|
|||
|
||||
render() {
|
||||
const s = (this.props.selectedJobs.length > 1) ? 's' : '';
|
||||
const jobsSelected = (this.props.selectedJobs.length > 0);
|
||||
return (
|
||||
<div className="multi-select-actions">
|
||||
{this.props.selectedJobs.length > 0 &&
|
||||
<div className={`multi-select-actions${jobsSelected ? '' : '-no-display'}`}>
|
||||
{jobsSelected &&
|
||||
<React.Fragment>
|
||||
<span className="jobs-selected-title">{this.props.selectedJobs.length} job{s} selected</span>
|
||||
<div className="actions-border-large" />
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
.multi-select-actions {
|
||||
padding: 10px 0px;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
|
||||
.jobs-selected-title {
|
||||
display: inline-block;
|
||||
|
@ -44,3 +45,7 @@
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
.multi-select-actions-no-display {
|
||||
display: none;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue