Skip to content

Commit 4b09cac

Browse files
authored
refactor: updating style of single bar gauge (#1392)
1 parent 2b18510 commit 4b09cac

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

projects/observability/src/shared/components/bar-gauge/bar-gauge.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100

101101
&.single-bar {
102102
height: 6px;
103-
width: 80px;
103+
width: 100%;
104104
}
105105
}
106106

projects/observability/src/shared/components/bar-gauge/bar-gauge.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import {
4444
[ngClass]="{ 'hide-last-divider': this.nearMaxValue }"
4545
[style.background]="segment.color"
4646
[style.width.%]="segment.percentage"
47+
htTooltip="{{ segment.label }} : {{ segment.value | htDisplayNumber }}"
4748
>
4849
<div class="divider"></div>
4950
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { CommonModule } from '@angular/common';
22
import { NgModule } from '@angular/core';
33
import { FormattingModule } from '@hypertrace/common';
4-
import { LayoutChangeModule } from '@hypertrace/components';
4+
import { LayoutChangeModule, TooltipModule } from '@hypertrace/components';
55
import { BarGaugeComponent } from './bar-gauge.component';
66

77
@NgModule({
88
declarations: [BarGaugeComponent],
9-
imports: [CommonModule, FormattingModule, LayoutChangeModule],
9+
imports: [CommonModule, FormattingModule, LayoutChangeModule, TooltipModule],
1010
exports: [BarGaugeComponent]
1111
})
1212
export class BarGaugeModule {}

0 commit comments

Comments
 (0)