On mobile, show power of ten difficulty instead of full number

This commit is contained in:
nymkappa
2022-02-17 10:15:41 +09:00
parent f45103e7e3
commit 1630ff717e
2 changed files with 22 additions and 2 deletions

View File

@@ -43,7 +43,8 @@
<tr *ngFor="let diffChange of diffChanges.data">
<td><a [routerLink]="['/block' | relativeUrl, diffChange.height]">{{ diffChange.height }}</a></td>
<td>&lrm;{{ diffChange.timestamp * 1000 | date:'yyyy-MM-dd HH:mm' }}</td>
<td>{{ formatNumber(diffChange.difficulty, locale, '1.2-2') }}</td>
<td class="d-none d-md-block">{{ formatNumber(diffChange.difficulty, locale, '1.2-2') }}</td>
<td class="d-block d-md-none">{{ diffChange.difficultyShorten }}</td>
<td [style]="diffChange.change >= 0 ? 'color: #42B747' : 'color: #B74242'">{{ formatNumber(diffChange.change, locale, '1.2-2') }}%</td>
</tr>
</tbody>