Skip to content

Commit

Permalink
fixing split chart class names and margins (elastic#12663)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar authored Jul 12, 2017
1 parent 574f5ca commit 4349a53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ export function VislibLibLayoutSplitsColumnChartChartSplitProvider() {
.append('div')
.attr('class', function (d, i) {
let fullDivClass = divClass;
if (chartsNumber > 1) {
if (i === 0) {
fullDivClass += ' chart-first';
} else if (i === chartsNumber - 1) {
fullDivClass += ' chart-last';
if (fullDivClass !== 'chart') {
if (chartsNumber > 1) {
if (i === 0) {
fullDivClass += ' chart-first';
} else if (i === chartsNumber - 1) {
fullDivClass += ' chart-last';
}
} else {
fullDivClass += ' chart-first chart-last';
}
}
return fullDivClass;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/vislib/styles/_layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
display: flex;
flex: 1 0 0px;
overflow: visible;
margin: 0;
margin: 5px;
min-height: 0;
min-width: 0;
}
Expand Down

0 comments on commit 4349a53

Please sign in to comment.