Display asset circulating amount more nicely fixing overflow

fixes #1264
This commit is contained in:
softsimon
2022-02-21 22:33:03 +04:00
parent 3f5a749352
commit 3e6dba2d58
4 changed files with 32 additions and 7 deletions

View File

@@ -1,3 +1,6 @@
<ng-container *ngIf="(circulatingAmount$ | async) as circulating">
{{ circulating.amount }} <span class="ticker">{{ circulating.ticker }}</span>
<ng-template [ngIf]="circulating.amount === -1" [ngIfElse]="default" i18n="shared.confidential">Confidential</ng-template>
<ng-template #default>
<span class="d-inline-block d-md-none">{{ circulating.amount | amountShortener }}</span>
<span class="d-none d-md-inline-block">{{ circulating.amount | number: '1.2-2' }}</span>&nbsp;<span class="ticker">{{ circulating.ticker }}</span></ng-template>
</ng-container>