File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
projects/observability/src/shared/components/bar-gauge Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 46
46
}
47
47
}
48
48
}
49
+
50
+ & .single-bar {
51
+ .title {
52
+ @include body-2-regular ($gray-7 );
53
+ margin-right : 12px ;
54
+ }
55
+ }
49
56
}
50
57
51
58
.bar {
90
97
width : 1px ;
91
98
background : white ;
92
99
}
100
+
101
+ & .single-bar {
102
+ height : 6px ;
103
+ width : 80px ;
104
+ }
93
105
}
94
106
95
107
.legend {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
24
24
changeDetection : ChangeDetectionStrategy . OnPush ,
25
25
template : `
26
26
<div class="bar-gauge" (htLayoutChange)="this.checkNearMaxValue()">
27
- <div class="header-data" [ngClass]="this.display">
27
+ <div *ngIf="this.display !== ' ${ BarGaugeStyle . SingleBar } '" class="header-data" [ngClass]="this.display">
28
28
<div *ngIf="this.title" class="title">{{ this.title | htDisplayTitle }}</div>
29
29
<div class="count">
30
30
<span>{{ this.totalValue | htDisplayNumber }}</span>
@@ -34,7 +34,7 @@ import {
34
34
<span class="units" *ngIf="this.units && !this.isUnlimited"> {{ this.units }}</span>
35
35
</div>
36
36
</div>
37
- <div class="bar">
37
+ <div class="bar" [ngClass]="this.display" >
38
38
<div #maxValueBar class="max-value-bar" [ngClass]="{ 'over-max-value': this.overMaxValue }">
39
39
<div class="segment-bars">
40
40
<div
@@ -162,5 +162,6 @@ interface BarSegment extends Segment {
162
162
163
163
export const enum BarGaugeStyle {
164
164
Regular = 'regular' ,
165
- Compact = 'compact'
165
+ Compact = 'compact' ,
166
+ SingleBar = 'single-bar'
166
167
}
You can’t perform that action at this time.
0 commit comments