mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 17:24:25 +01:00
Display empty mempool instead of no mempool blocks at all.
This commit is contained in:
parent
86c0a5ec7b
commit
b6b9001406
@ -1,6 +1,6 @@
|
|||||||
<div class="mempool-blocks-container">
|
<div class="mempool-blocks-container">
|
||||||
<div class="flashing">
|
<div class="flashing">
|
||||||
<div *ngFor="let projectedBlock of mempoolBlocks; let i = index; trackBy: trackByFn">
|
<ng-template ngFor let-projectedBlock [ngForOf]="mempoolBlocks" let-i="index" [ngForTrackBy]="trackByFn">
|
||||||
<div class="bitcoin-block text-center mempool-block" id="mempool-block-{{ i }}" [ngStyle]="mempoolBlockStyles[i]">
|
<div class="bitcoin-block text-center mempool-block" id="mempool-block-{{ i }}" [ngStyle]="mempoolBlockStyles[i]">
|
||||||
<a [routerLink]="['/mempool-block/' | relativeUrl, i]" class="blockLink"> </a>
|
<a [routerLink]="['/mempool-block/' | relativeUrl, i]" class="blockLink"> </a>
|
||||||
<div class="block-body" *ngIf="mempoolBlocks?.length">
|
<div class="block-body" *ngIf="mempoolBlocks?.length">
|
||||||
@ -26,7 +26,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<span class="animated-border"></span>
|
<span class="animated-border"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</ng-template>
|
||||||
|
<div *ngIf="mempoolBlocks?.length === 0" class="bitcoin-block mempool-block empty-block">Mempool is empty</div>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="arrowVisible" id="arrow-up" [ngStyle]="{'right': rightPosition + 75 + 'px', transition: transition }"></div>
|
<div *ngIf="arrowVisible" id="arrow-up" [ngStyle]="{'right': rightPosition + 75 + 'px', transition: transition }"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -116,3 +116,13 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.empty-block {
|
||||||
|
width: 125px;
|
||||||
|
height: 125px;
|
||||||
|
|
||||||
|
right: 40px;
|
||||||
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user