Skip to content

Commit

Permalink
bugfix update dashboard alerts cards height not consist (#1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsun28 authored Jul 11, 2023
1 parent 120c02b commit 38bf611
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions web-app/src/app/routes/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@
style="width: 100%; height: 400px; margin-top: 1%"
></div>

<div nz-row nzGutter="16" style="margin-top: 25px">
<div nz-col nzXs="24" nzSm="24" nzMd="12" class="mb-md">
<nz-card nzHoverable [nzTitle]="alertCardTitleTemplate" [nzExtra]="extraTemplate">
<div nz-row nzGutter="16" style="margin-top: 25px; height: 320px">
<div nz-col nzXs="24" nzSm="24" nzMd="12" class="mb-md" style="height: 100%">
<nz-card nzHoverable [nzTitle]="alertCardTitleTemplate" [nzExtra]="extraTemplate" style="height: inherit; overflow-y: scroll">
<nz-timeline nzMode="left">
<nz-timeline-item
*ngFor="let alert of alerts; let i = index"
Expand All @@ -139,27 +139,27 @@
</nz-timeline>
</nz-card>
</div>
<div nz-col nzXs="24" nzSm="12" nzMd="7" class="mb-md">
<div nz-col nzXs="24" nzSm="12" nzMd="7" class="mb-md" style="height: 100%">
<div
echarts
[options]="alertsEChartOption"
theme="default"
[autoResize]="true"
[loading]="alertsLoading"
(chartInit)="onAlertNumChartInit($event)"
style="width: 100%; height: 300px; padding-left: 30px"
style="width: 100%; height: inherit; padding-left: 30px"
class="ant-card ant-card-bordered ant-card-hoverable"
></div>
</div>
<div nz-col nzXs="24" nzSm="12" nzMd="5" class="mb-md">
<div nz-col nzXs="24" nzSm="12" nzMd="5" class="mb-md" style="height: 100%">
<div
echarts
[options]="alertsDealEChartOption"
theme="default"
[autoResize]="true"
[loading]="alertsDealLoading"
(chartInit)="onAlertRateChartInit($event)"
style="width: 100%; height: 300px"
style="width: 100%; height: inherit"
class="ant-card ant-card-bordered ant-card-hoverable"
></div>
</div>
Expand Down

0 comments on commit 38bf611

Please sign in to comment.