Merge pull request #4381 from mempool/mononaut/acc-preview-min-height

Minimum acceleration preview bar height
This commit is contained in:
softsimon 2023-11-15 18:22:05 +09:00 committed by GitHub
commit fa12233667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 7 deletions

View File

@ -18,6 +18,7 @@
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;
min-height: 30px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;

View File

@ -58,13 +58,15 @@ export class AccelerateFeeGraphComponent implements OnInit, OnChanges {
fee: option.fee, fee: option.fee,
} }
}); });
bars.push({ if (this.estimate.nextBlockFee > this.estimate.txSummary.effectiveFee) {
rate: this.estimate.targetFeeRate, bars.push({
style: this.getStyle(this.estimate.targetFeeRate, maxRate, baseHeight), rate: this.estimate.targetFeeRate,
class: 'target', style: this.getStyle(this.estimate.targetFeeRate, maxRate, baseHeight),
label: 'next block', class: 'target',
fee: this.estimate.nextBlockFee - this.estimate.txSummary.effectiveFee label: 'next block',
}); fee: this.estimate.nextBlockFee - this.estimate.txSummary.effectiveFee
});
}
bars.push({ bars.push({
rate: baseRate, rate: baseRate,
style: this.getStyle(baseRate, maxRate, 0), style: this.getStyle(baseRate, maxRate, 0),