mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-01 07:08:49 +01:00
fix(traffic): prevent container overflow
This commit is contained in:
parent
d3bd96f154
commit
e0a5fef369
2 changed files with 13 additions and 8 deletions
|
|
@ -5,7 +5,6 @@ import { LayoutService } from '../../../@core/utils';
|
|||
|
||||
@Component({
|
||||
selector: 'ngx-traffic-chart',
|
||||
styleUrls: ['./traffic.component.scss'],
|
||||
template: `
|
||||
<div echarts
|
||||
[options]="option"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue