fix(traffic): prevent container overflow

This commit is contained in:
Sergey Andrievskiy 2019-06-21 16:09:26 +03:00
parent d3bd96f154
commit e0a5fef369
2 changed files with 13 additions and 8 deletions

View file

@ -5,7 +5,6 @@ import { LayoutService } from '../../../@core/utils';
@Component({
selector: 'ngx-traffic-chart',
styleUrls: ['./traffic.component.scss'],
template: `
<div echarts
[options]="option"

View file

@ -15,14 +15,20 @@
padding-bottom: 0.45rem;
}
::ng-deep canvas {
border-bottom-left-radius: nb-theme(card-border-radius);
border-bottom-right-radius: nb-theme(card-border-radius);
ngx-traffic-chart {
flex: 1;
}
.echart {
position: absolute;
height: 100%;
width: 100%;
::ng-deep {
.echart {
display: block;
height: 100%;
width: 100%;
}
canvas {
border-bottom-left-radius: nb-theme(card-border-radius);
border-bottom-right-radius: nb-theme(card-border-radius);
}
}
}