From 9fe4cc2d2b3b8d769fc21133c2a06246f3c3eb38 Mon Sep 17 00:00:00 2001 From: nymkappa Date: Sat, 11 Jun 2022 00:04:19 +0200 Subject: [PATCH] Only show `(1w)` on `Blocks` in pool ranking widget Add tooltips to explain `Pools luck`, `Pools count` and `Blocs (1w)` --- .../pool-ranking/pool-ranking.component.html | 27 ++++++++++--------- .../pool-ranking/pool-ranking.component.scss | 3 ++- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/frontend/src/app/components/pool-ranking/pool-ranking.component.html b/frontend/src/app/components/pool-ranking/pool-ranking.component.html index 738f540f3..4651b62c1 100644 --- a/frontend/src/app/components/pool-ranking/pool-ranking.component.html +++ b/frontend/src/app/components/pool-ranking/pool-ranking.component.html @@ -5,24 +5,27 @@
-
Pools Luck (1w)
-

+

Pools luck
+

{{ miningStats['minersLuck'] }}%

-
Blocks (1w)
-

- {{ miningStats.blockCount }} +

Pools count
+

+ {{ miningStats.pools.length }}

-
Pools Count (1w)
-

- {{ miningStats.pools.length }} +

Blocks (1w)
+

+ {{ miningStats.blockCount }}

@@ -142,4 +145,4 @@

- \ No newline at end of file + diff --git a/frontend/src/app/components/pool-ranking/pool-ranking.component.scss b/frontend/src/app/components/pool-ranking/pool-ranking.component.scss index 4f46c8927..855b4e65c 100644 --- a/frontend/src/app/components/pool-ranking/pool-ranking.component.scss +++ b/frontend/src/app/components/pool-ranking/pool-ranking.component.scss @@ -89,7 +89,7 @@ flex-direction: row; } h5 { - margin-bottom: 10px; + margin-bottom: 5px; } .item { max-width: 160px; @@ -103,6 +103,7 @@ } } &:nth-child(3) { + width: 50%; order: 3; @media (min-width: 485px) { order: 2;