Add margin above thresholds list if not first item in controls panel

pull/10616/head
Alex P 2018-03-14 22:13:27 -07:00
parent 886d640434
commit fc99d507f0
1 changed files with 4 additions and 1 deletions

View File

@ -115,8 +115,11 @@ class ThresholdsList extends Component {
const {thresholdsListColors, showListHeading} = this.props
const disableAddThreshold = thresholdsListColors.length > MAX_THRESHOLDS
const thresholdsListClass = `thresholds-list${showListHeading &&
' graph-options-group'}`
return (
<div className="thresholds-list">
<div className={thresholdsListClass}>
{showListHeading && <label className="form-label">Thresholds</label>}
<button
className="btn btn-sm btn-primary"