Skip to content

Commit ca0dc6c

Browse files
committed
CSS refactoring of statistics sidepanel
1 parent db14867 commit ca0dc6c

File tree

3 files changed

+46
-43
lines changed

3 files changed

+46
-43
lines changed

src/css/novatec-service-dependency-graph-panel.css

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,51 +40,53 @@
4040

4141
.statistics.show {
4242
flex-basis: 30rem;
43-
43+
padding-left: 0.5%;
4444
}
4545

4646
.header--selection{
47-
font-size: 1.7em;
48-
display: block;
47+
font-size: 1.25em;
4948
text-align: center;
50-
padding-top: 15px;
51-
border-bottom: 1px solid white;
49+
border-bottom: 2px solid #161719;
50+
font-weight: 500;
51+
color: rgb(216, 217, 218);
5252
}
5353

54-
.secondHeader--selection{
55-
56-
font-size: 1.5em;
57-
display: block;
54+
.secondHeader--selection {
55+
font-size: 1.2em;
5856
text-align: center;
59-
padding-top: 30px;
60-
padding-bottom: 10px;
57+
padding-top: 1.5rem;
58+
padding-bottom: 0.5rem;
6159
}
62-
.noSending--selection{
60+
.no-data--selection{
6361
font-size: 1.2em;
6462
display: block;
6563
text-align: center;
6664
}
6765
.table--selection {
6866
width: 99%;
67+
table-layout: fixed;
68+
}
69+
70+
.table--selection th, .table--selection td {
71+
padding: 3px 5px;
6972
}
7073

71-
.table--th--selection {
72-
padding-left: 5px;
74+
.table--selection tr {
75+
border-bottom: 2px solid #161719;
7376
}
7477

7578
.table--td--selection {
76-
padding: 0.25rem;
77-
border: 1px solid white;
7879
overflow: hidden;
7980
text-overflow: ellipsis;
8081
white-space: nowrap;
81-
max-width: 12rem;
8282
}
8383

8484
.table--th--selectionSmall {
85-
width: 6rem;
85+
width: 5.5rem;
8686
}
8787

88-
.table--td--selectionSmall {
89-
width: 6rem;
90-
}
88+
.table--selection--head {
89+
background-color: #28282a;
90+
border-top: 2px solid #161719;
91+
color: #33b5e5;
92+
}

src/partials/module.html

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,38 @@
1414
</div>
1515

1616
<div ng-class="{statistics: true, 'show': ctrl.showStatistics}">
17-
<label class="header--selection">{{ctrl.selectionId}}</label>
18-
<label class="secondHeader--selection">Receiving</label>
19-
<label class="noSending--selection" ng-show="ctrl.receiving.length == 0">No receiving Data</label>
17+
<div class="header--selection">{{ctrl.selectionId}}</div>
18+
<div class="secondHeader--selection">Receiving</div>
19+
<div class="no-data--selection" ng-show="ctrl.receiving.length == 0">No receiving Data</div>
2020
<table class="table--selection" ng-show="ctrl.receiving.length > 0">
21-
<tr>
22-
<th class="table--th--selection">Name</th>
23-
<th class="table--th--selection table--th--selectionSmall">Time</th>
24-
<th class="table--th--selection table--th--selectionSmall">Requests</th>
25-
<th class="table--th--selection table--th--selectionSmall">Error Rate</th>
21+
<tr class="table--selection--head">
22+
<th>Name</th>
23+
<th class="table--th--selectionSmall">Time</th>
24+
<th class="table--th--selectionSmall">Requests</th>
25+
<th class="table--th--selectionSmall">Error Rate</th>
2626
</tr>
2727
<tr ng-repeat="node in ctrl.receiving">
2828
<td class="table--td--selection">{{node.name}}</td>
29-
<td class="table--td--selection table--td--selectionSmall">{{node.responseTime}}</td>
30-
<td class="table--td--selection table--td--selectionSmall">{{node.rate}}</td>
31-
<td class="table--td--selection table--td--selectionSmall">{{node.error}}</td>
29+
<td class="table--td--selection">{{node.responseTime}}</td>
30+
<td class="table--td--selection">{{node.rate}}</td>
31+
<td class="table--td--selection">{{node.error}}</td>
3232
</tr>
3333
</table>
34-
<label class="secondHeader--selection">Sending</label>
35-
<label class="noSending--selection" ng-show="ctrl.sending.length == 0">No sending Data</label>
34+
35+
<div class="secondHeader--selection">Sending</div>
36+
<div class="no-data--selection" ng-show="ctrl.sending.length == 0">No sending Data</div>
3637
<table class="table--selection" ng-show="ctrl.sending.length>0">
37-
<tr>
38-
<th class="table--th--selection">Name</th>
39-
<th class="table--th--selection table--th--selectionSmall">Time</th>
40-
<th class="table--th--selection table--th--selectionSmall">Requests</th>
41-
<th class="table--th--selection table--th--selectionSmall">Error Rate</th>
38+
<tr class="table--selection--head">
39+
<th>Name</th>
40+
<th class="table--th--selectionSmall">Time</th>
41+
<th class="table--th--selectionSmall">Requests</th>
42+
<th class="table--th--selectionSmall">Error Rate</th>
4243
</tr>
4344
<tr ng-repeat="node in ctrl.sending">
4445
<td class="table--td--selection">{{node.name}}</td>
45-
<td class="table--td--selection table--td--selectionSmall">{{node.responseTime}}</td>
46-
<td class="table--td--selection table--td--selectionSmall">{{node.rate}}</td>
47-
<td class="table--td--selection table--td--selectionSmall">{{node.error}}</td>
46+
<td class="table--td--selection">{{node.responseTime}}</td>
47+
<td class="table--td--selection">{{node.rate}}</td>
48+
<td class="table--td--selection">{{node.error}}</td>
4849
</tr>
4950

5051
</table>

src/service_dependency_graph_ctrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export class ServiceDependencyGraphCtrl extends MetricsPanelCtrl {
317317
const actualEdge: EdgeSingular = edges[i];
318318
const metrics: IGraphMetrics = actualEdge.data('metrics');
319319
let { response_time, rate } = metrics;
320-
let sendingCheck: boolean = actualEdge.source().data().id === this.selectionId;
320+
let sendingCheck: boolean = actualEdge.source().id() === this.selectionId;
321321
let node: NodeSingular;
322322

323323
if (sendingCheck) {

0 commit comments

Comments
 (0)