From 21ef5054bf9d2d5db5fdcc0846b0927b4b163e5c Mon Sep 17 00:00:00 2001 From: softsimon Date: Sat, 26 Sep 2020 23:40:26 +0700 Subject: [PATCH] Moving fee box into a regular box. --- .../fees-box/fees-box.component.html | 52 +++++++++++++------ .../fees-box/fees-box.component.scss | 10 +--- .../mempool-graph/mempool-graph.component.ts | 2 +- .../app/dashboard/dashboard.component.html | 26 +++++++--- 4 files changed, 58 insertions(+), 32 deletions(-) diff --git a/frontend/src/app/components/fees-box/fees-box.component.html b/frontend/src/app/components/fees-box/fees-box.component.html index 7d208b205..a317e3783 100644 --- a/frontend/src/app/components/fees-box/fees-box.component.html +++ b/frontend/src/app/components/fees-box/fees-box.component.html @@ -1,19 +1,39 @@ - - - - - - +
Low priorityMedium priorityHigh priority
- - - + + + - - - - - - -
{{ feeEstimations.hourFee }} sat/vB (){{ feeEstimations.halfHourFee }} sat/vB (){{ feeEstimations.fastestFee }} sat/vB () +
Low priority
+

+ {{ feeEstimations.hourFee }} sat/vB () +

+
+
Medium priority
+

+ {{ feeEstimations.halfHourFee }} sat/vB () +

+
+
High priority
+

+ {{ feeEstimations.fastestFee }} sat/vB () +

+
+ + + + +
Low priority
+

+ + +
Medium priority
+

+ + +
High priority
+

+ + +
diff --git a/frontend/src/app/components/fees-box/fees-box.component.scss b/frontend/src/app/components/fees-box/fees-box.component.scss index ab8257f06..d715af64d 100644 --- a/frontend/src/app/components/fees-box/fees-box.component.scss +++ b/frontend/src/app/components/fees-box/fees-box.component.scss @@ -1,9 +1,3 @@ -td { - width: 33%; -} - -@media (max-width: 767.98px) { - td { - width: 50%; - } +.card-title { + color: #4a68b9; } diff --git a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts index 59faa9bff..650e5ac10 100644 --- a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts +++ b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts @@ -64,7 +64,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges { labelInterpolationFnc: (value: number): any => { return this.vbytesPipe.transform(value, 2); }, - offset: showLegend ? 160 : 60, + offset: showLegend ? 160 : 80, }, plugins: [ Chartist.plugins.ctTargetLine({ diff --git a/frontend/src/app/dashboard/dashboard.component.html b/frontend/src/app/dashboard/dashboard.component.html index 154a11661..c0f1eeeab 100644 --- a/frontend/src/app/dashboard/dashboard.component.html +++ b/frontend/src/app/dashboard/dashboard.component.html @@ -1,21 +1,33 @@ - -
+
-
Mempool size
-

{{ mempoolBlocksData.size | bytes }} ({{ mempoolBlocksData.blocks }} blocks)

+
-
Unconfirmed transactions
-

{{ mempoolInfoData.value.memPoolInfo.size | number }}

+ + + + + +
+
Mempool size
+

+ {{ mempoolBlocksData.size | bytes }} ({{ mempoolBlocksData.blocks }} blocks) +

+
+
Unconfirmed
+

+ {{ mempoolInfoData.value.memPoolInfo.size | number }} +

+
@@ -51,7 +63,7 @@
-
+