Fix skeleton for difficulty adjustment table

This commit is contained in:
nymkappa 2022-03-09 11:55:56 +01:00
parent f0f9d33dac
commit 8d7546d2b5
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -27,7 +27,7 @@
<div *ngIf="!tableOnly" [class]="!widget ? 'chart' : 'chart-widget'"
echarts [initOpts]="chartInitOptions" [options]="chartOptions"></div>
<div class="text-center loadingGraphs" *ngIf="isLoading">
<div class="text-center loadingGraphs" *ngIf="isLoading && !tableOnly">
<div class="spinner-border text-light"></div>
</div>
@ -48,6 +48,14 @@
<td class="text-right" [style]="diffChange.change >= 0 ? 'color: #42B747' : 'color: #B74242'">{{ formatNumber(diffChange.change, locale, '1.2-2') }}%</td>
</tr>
</tbody>
<tbody *ngIf="isLoading">
<tr *ngFor="let item of [1,2,3,4,5]">
<td class="d-none d-md-block w-75"><span class="skeleton-loader"></span></td>
<td class="text-left"><span class="skeleton-loader w-75"></span></td>
<td class="text-right"><span class="skeleton-loader w-75"></span></td>
<td class="text-right"><span class="skeleton-loader w-75"></span></td>
</tr>
</tbody>
</table>
</div>