fix gaps in loading blockchain
This commit is contained in:
parent
ee265be55e
commit
c65674479a
@ -71,7 +71,7 @@
|
|||||||
<ng-container *ngIf="!connected || loadingTip || (block && block.loading)">
|
<ng-container *ngIf="!connected || loadingTip || (block && block.loading)">
|
||||||
<div class="flashing loading">
|
<div class="flashing loading">
|
||||||
<div class="text-center bitcoin-block mined-block" id="bitcoin-block-{{ block.height }}"
|
<div class="text-center bitcoin-block mined-block" id="bitcoin-block-{{ block.height }}"
|
||||||
[ngStyle]="emptyBlockStyles[i]"></div>
|
[ngStyle]="convertStyleForLoadingBlock(blockStyles[i])"></div>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
@ -290,6 +290,13 @@ export class BlockchainBlocksComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
convertStyleForLoadingBlock(style) {
|
||||||
|
return {
|
||||||
|
...style,
|
||||||
|
background: "#2d3348",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
getStyleForLoadingBlock(index: number, animateEnterFrom: number = 0) {
|
getStyleForLoadingBlock(index: number, animateEnterFrom: number = 0) {
|
||||||
const addLeft = animateEnterFrom || 0;
|
const addLeft = animateEnterFrom || 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user