From f8706f0a6242886587ed81d98b231756f605b847 Mon Sep 17 00:00:00 2001 From: rbrooklyn <11929484+rbrooklyn@users.noreply.github.com> Date: Fri, 14 Feb 2020 16:52:01 +0000 Subject: [PATCH] Remove index===3 checks from getStyleForProjectedBlockAtIndex --- .../blockchain-projected-blocks.component.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/frontend/src/app/blockchain-projected-blocks/blockchain-projected-blocks.component.ts b/frontend/src/app/blockchain-projected-blocks/blockchain-projected-blocks.component.ts index 0bfe5fc31..a353e9939 100644 --- a/frontend/src/app/blockchain-projected-blocks/blockchain-projected-blocks.component.ts +++ b/frontend/src/app/blockchain-projected-blocks/blockchain-projected-blocks.component.ts @@ -41,22 +41,12 @@ export class BlockchainProjectedBlocksComponent implements OnInit, OnDestroy { getStyleForProjectedBlockAtIndex(index: number) { const greenBackgroundHeight = 100 - (this.projectedBlocks[index].blockWeight / 4000000) * 100; if (window.innerWidth <= 768) { - if (index === 3) { - return { - 'top': 40 + index * 155 + 'px' - }; - } return { 'top': 40 + index * 155 + 'px', 'background': `repeating-linear-gradient(#554b45, #554b45 ${greenBackgroundHeight}%, #bd7c13 ${Math.max(greenBackgroundHeight, 0)}%, #c5345a 100%)`, }; } else { - if (index === 3) { - return { - 'right': 40 + index * 155 + 'px' - }; - } return { 'right': 40 + index * 155 + 'px', 'background': `repeating-linear-gradient(#554b45, #554b45 ${greenBackgroundHeight}%,