Display at least one standalone mempool block.

Upgrade some packages to ng 9.
This commit is contained in:
softsimon committed 2020-06-04 15:08:24 +07:00
1 parent 6eaee15889
commit 9263c79822
3 files changed
+4 -7

No files matched your search

@@ -109,7 +109,7 @@ export class MempoolBlocksComponent implements OnInit, OnDestroy {
}
reduceMempoolBlocksToFitScreen(blocks: MempoolBlock[]): MempoolBlock[] {
const blocksAmount = Math.max(1, Math.floor(window.innerWidth / 2 / (this.blockWidth + this.blockPadding)));
const blocksAmount = Math.max(2, Math.floor(window.innerWidth / 2 / (this.blockWidth + this.blockPadding)));
while (blocks.length > blocksAmount) {
const block = blocks.pop();
const lastBlock = blocks[blocks.length - 1];