Merge pull request #4381 from mempool/mononaut/acc-preview-min-height
Minimum acceleration preview bar height
This commit is contained in:
		
						commit
						fa12233667
					
				@ -18,6 +18,7 @@
 | 
			
		||||
      bottom: 0;
 | 
			
		||||
      left: 0;
 | 
			
		||||
      right: 0;
 | 
			
		||||
      min-height: 30px;
 | 
			
		||||
      display: flex;
 | 
			
		||||
      flex-direction: column;
 | 
			
		||||
      justify-content: center;
 | 
			
		||||
 | 
			
		||||
@ -58,13 +58,15 @@ export class AccelerateFeeGraphComponent implements OnInit, OnChanges {
 | 
			
		||||
        fee: option.fee,
 | 
			
		||||
      }
 | 
			
		||||
    });
 | 
			
		||||
    bars.push({
 | 
			
		||||
      rate: this.estimate.targetFeeRate,
 | 
			
		||||
      style: this.getStyle(this.estimate.targetFeeRate, maxRate, baseHeight),
 | 
			
		||||
      class: 'target',
 | 
			
		||||
      label: 'next block',
 | 
			
		||||
      fee: this.estimate.nextBlockFee - this.estimate.txSummary.effectiveFee
 | 
			
		||||
    });
 | 
			
		||||
    if (this.estimate.nextBlockFee > this.estimate.txSummary.effectiveFee) {
 | 
			
		||||
      bars.push({
 | 
			
		||||
        rate: this.estimate.targetFeeRate,
 | 
			
		||||
        style: this.getStyle(this.estimate.targetFeeRate, maxRate, baseHeight),
 | 
			
		||||
        class: 'target',
 | 
			
		||||
        label: 'next block',
 | 
			
		||||
        fee: this.estimate.nextBlockFee - this.estimate.txSummary.effectiveFee
 | 
			
		||||
      });
 | 
			
		||||
    }
 | 
			
		||||
    bars.push({
 | 
			
		||||
      rate: baseRate,
 | 
			
		||||
      style: this.getStyle(baseRate, maxRate, 0),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user