diff --git a/frontend/src/app/components/difficulty-mining/difficulty-mining.component.html b/frontend/src/app/components/difficulty-mining/difficulty-mining.component.html index ce0bf7eff..774ddef07 100644 --- a/frontend/src/app/components/difficulty-mining/difficulty-mining.component.html +++ b/frontend/src/app/components/difficulty-mining/difficulty-mining.component.html @@ -47,7 +47,8 @@
-
Next Halving
+
Next Halving
{{ i }} blocks @@ -77,7 +78,7 @@
-
Current Period
+
Next Halving
diff --git a/frontend/src/app/components/difficulty-mining/difficulty-mining.component.scss b/frontend/src/app/components/difficulty-mining/difficulty-mining.component.scss index 0530bc0cf..cf031bebc 100644 --- a/frontend/src/app/components/difficulty-mining/difficulty-mining.component.scss +++ b/frontend/src/app/components/difficulty-mining/difficulty-mining.component.scss @@ -10,6 +10,7 @@ .item { padding: 0 5px; width: 100%; + max-width: 150px; &:nth-child(1) { display: none; @media (min-width: 485px) { @@ -85,6 +86,9 @@ .card-title { color: #4a68b9; font-size: 1rem; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .progress { diff --git a/frontend/src/app/components/difficulty-mining/difficulty-mining.component.ts b/frontend/src/app/components/difficulty-mining/difficulty-mining.component.ts index 2abb02e22..fbf31f238 100644 --- a/frontend/src/app/components/difficulty-mining/difficulty-mining.component.ts +++ b/frontend/src/app/components/difficulty-mining/difficulty-mining.component.ts @@ -83,4 +83,8 @@ export class DifficultyMiningComponent implements OnInit { }) ); } + + isEllipsisActive(e): boolean { + return (e.offsetWidth < e.scrollWidth); + } } diff --git a/frontend/src/app/components/reward-stats/reward-stats.component.html b/frontend/src/app/components/reward-stats/reward-stats.component.html index d59280fd1..5c1a8d7cd 100644 --- a/frontend/src/app/components/reward-stats/reward-stats.component.html +++ b/frontend/src/app/components/reward-stats/reward-stats.component.html @@ -50,14 +50,14 @@
-
Reward Per Tx
+
Avg Block Fees
-
Reward Per Tx
+
Avg Tx Fee