Dashboard layout reviewed. (#550)

* Fix mempool-info-data item margin-bottom.

* Remove unecessary bootstrap classes.

* Fix lint errors.

* Fix and remove css classes.

* Add css class to Terms of Service.
This commit is contained in:
Miguel Medeiros
2021-06-06 17:07:04 -03:00
committed by GitHub
parent 353b0e8729
commit dec8ae2930
3 changed files with 63 additions and 34 deletions

View File

@@ -90,7 +90,7 @@ export class DashboardComponent implements OnInit {
progressClass = 'bg-warning';
}
const mempoolSizePercentage = (mempoolInfo.usage / mempoolInfo.maxmempool * 100)
const mempoolSizePercentage = (mempoolInfo.usage / mempoolInfo.maxmempool * 100);
let mempoolSizeProgress = 'bg-danger';
if (mempoolSizePercentage <= 50) {
mempoolSizeProgress = 'bg-success';
@@ -118,7 +118,7 @@ export class DashboardComponent implements OnInit {
const diff = now - DATime;
const blocksInEpoch = block.height % 2016;
const estimatedBlocks = Math.round(diff / 60 / 10);
const difficultyChange = (600 / (diff / blocksInEpoch ) -1) * 100;
const difficultyChange = (600 / (diff / blocksInEpoch ) - 1) * 100;
let base = 0;
let green = 0;