Skip to content

Commit

Permalink
Merge pull request #227 from ilri/counters-percentage-alignment-fix
Browse files Browse the repository at this point in the history
Counters percentage alignment fix
  • Loading branch information
alanorth authored Feb 6, 2024
2 parents 10a5606 + 9a0f781 commit 169abd2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
<mat-icon *ngIf="componentConfigs?.icon">{{ componentConfigs.icon }}</mat-icon>
<mat-card-title>
<strong>{{ componentConfigs.title }}</strong>
<span class="counter-number">{{ count | number }}</span>
<ng-container *ngIf="percentage">
<span class="counter-number">
{{ count | number }}
<ng-container *ngIf="percentage">
<small class="small-text">
/ {{ percentage | number: '1.1-2' }} %
</small>
</ng-container>
</span>
</mat-card-title>
</ng-container>
</mat-card-content>
Expand Down

0 comments on commit 169abd2

Please sign in to comment.