mirror of
https://github.com/mempool/mempool.git
synced 2024-12-27 08:44:26 +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="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]">
|
||||
<a [routerLink]="['/mempool-block/' | relativeUrl, i]" class="blockLink"> </a>
|
||||
<div class="block-body" *ngIf="mempoolBlocks?.length">
|
||||
@ -26,7 +26,8 @@
|
||||
</div>
|
||||
<span class="animated-border"></span>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<div *ngIf="mempoolBlocks?.length === 0" class="bitcoin-block mempool-block empty-block">Mempool is empty</div>
|
||||
</div>
|
||||
<div *ngIf="arrowVisible" id="arrow-up" [ngStyle]="{'right': rightPosition + 75 + 'px', transition: transition }"></div>
|
||||
</div>
|
||||
|
@ -116,3 +116,13 @@
|
||||
left: 0;
|
||||
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