From fbd8e0588cfbe6817ca0fa41b100450276bee223 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Fri, 13 Jan 2023 11:31:56 -0600 Subject: [PATCH 1/4] Fix page elements obscured by bottom nav bar on mobile --- frontend/src/app/bisq/bisq-blocks/bisq-blocks.component.html | 3 +++ frontend/src/app/components/assets/assets.component.html | 2 ++ frontend/src/app/components/block/block.component.html | 3 +++ .../src/app/components/blocks-list/blocks-list.component.html | 3 +++ .../src/app/components/blocks-list/blocks-list.component.scss | 1 - .../src/app/components/statistics/statistics.component.scss | 2 +- .../src/app/components/transaction/transaction.component.html | 2 ++ frontend/src/app/dashboard/dashboard.component.html | 2 ++ frontend/src/app/docs/docs/docs.component.html | 2 ++ .../app/lightning/channels-list/channels-list.component.html | 3 +++ 10 files changed, 21 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/bisq/bisq-blocks/bisq-blocks.component.html b/frontend/src/app/bisq/bisq-blocks/bisq-blocks.component.html index 9fbd6ad1b..750e2e3b1 100644 --- a/frontend/src/app/bisq/bisq-blocks/bisq-blocks.component.html +++ b/frontend/src/app/bisq/bisq-blocks/bisq-blocks.component.html @@ -27,6 +27,9 @@
+ +
+
diff --git a/frontend/src/app/components/assets/assets.component.html b/frontend/src/app/components/assets/assets.component.html index d5accc9d7..51a2f7696 100644 --- a/frontend/src/app/components/assets/assets.component.html +++ b/frontend/src/app/components/assets/assets.component.html @@ -20,6 +20,8 @@ +
+
diff --git a/frontend/src/app/components/block/block.component.html b/frontend/src/app/components/block/block.component.html index 08ea04ca9..9ea86df12 100644 --- a/frontend/src/app/components/block/block.component.html +++ b/frontend/src/app/components/block/block.component.html @@ -333,6 +333,9 @@ + +
+
diff --git a/frontend/src/app/components/blocks-list/blocks-list.component.html b/frontend/src/app/components/blocks-list/blocks-list.component.html index 0dd24d116..424ea2ec4 100644 --- a/frontend/src/app/components/blocks-list/blocks-list.component.html +++ b/frontend/src/app/components/blocks-list/blocks-list.component.html @@ -122,6 +122,9 @@ [collectionSize]="blocksCount" [rotate]="true" [maxSize]="maxSize" [pageSize]="15" [(page)]="page" (pageChange)="pageChange(page)" [boundaryLinks]="true" [ellipses]="false"> + +
+
diff --git a/frontend/src/app/components/blocks-list/blocks-list.component.scss b/frontend/src/app/components/blocks-list/blocks-list.component.scss index 713e59640..1a32f7ed7 100644 --- a/frontend/src/app/components/blocks-list/blocks-list.component.scss +++ b/frontend/src/app/components/blocks-list/blocks-list.component.scss @@ -6,7 +6,6 @@ .container-xl { max-width: 1400px; - padding-bottom: 100px; } .container-xl.widget { padding-left: 0px; diff --git a/frontend/src/app/components/statistics/statistics.component.scss b/frontend/src/app/components/statistics/statistics.component.scss index d05790019..200b3c34f 100644 --- a/frontend/src/app/components/statistics/statistics.component.scss +++ b/frontend/src/app/components/statistics/statistics.component.scss @@ -1,5 +1,5 @@ .container-graph { - padding: 0px 15px; + padding: 0px 15px 60px; } .card-header { diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html index b6ed2868f..c3d3a8341 100644 --- a/frontend/src/app/components/transaction/transaction.component.html +++ b/frontend/src/app/components/transaction/transaction.component.html @@ -464,6 +464,8 @@
+
+
diff --git a/frontend/src/app/dashboard/dashboard.component.html b/frontend/src/app/dashboard/dashboard.component.html index 03cd613f4..31a7e4151 100644 --- a/frontend/src/app/dashboard/dashboard.component.html +++ b/frontend/src/app/dashboard/dashboard.component.html @@ -150,6 +150,8 @@ Broadcast Transaction +
+ diff --git a/frontend/src/app/docs/docs/docs.component.html b/frontend/src/app/docs/docs/docs.component.html index 9e7f57c74..b0c51ad16 100644 --- a/frontend/src/app/docs/docs/docs.component.html +++ b/frontend/src/app/docs/docs/docs.component.html @@ -53,5 +53,7 @@ Privacy Policy +
+ diff --git a/frontend/src/app/lightning/channels-list/channels-list.component.html b/frontend/src/app/lightning/channels-list/channels-list.component.html index 5d40c9b3d..cdc10a63f 100644 --- a/frontend/src/app/lightning/channels-list/channels-list.component.html +++ b/frontend/src/app/lightning/channels-list/channels-list.component.html @@ -28,6 +28,9 @@
No channels to display
+ +
+
From 05d7ca2cd38b696ad9b1ae1ffa081e3856cf16ec Mon Sep 17 00:00:00 2001 From: Mononaut Date: Mon, 16 Jan 2023 10:23:44 -0600 Subject: [PATCH 2/4] Fix lightning page elements obscured by bottom nav --- .../block-fee-rates-graph.component.scss | 1 - .../block-fees-graph/block-fees-graph.component.scss | 1 - .../block-prediction-graph.component.scss | 1 - .../block-rewards-graph/block-rewards-graph.component.scss | 1 - .../block-sizes-weights-graph.component.scss | 1 - .../hashrate-chart/hashrate-chart.component.scss | 1 - .../hashrate-chart-pools.component.scss | 1 - .../lightning-dashboard/lightning-dashboard.component.html | 7 ++++--- .../nodes-networks-chart.component.scss | 1 - .../lightning-statistics-chart.component.scss | 1 - 10 files changed, 4 insertions(+), 12 deletions(-) diff --git a/frontend/src/app/components/block-fee-rates-graph/block-fee-rates-graph.component.scss b/frontend/src/app/components/block-fee-rates-graph/block-fee-rates-graph.component.scss index c5a217983..f916bfc79 100644 --- a/frontend/src/app/components/block-fee-rates-graph/block-fee-rates-graph.component.scss +++ b/frontend/src/app/components/block-fee-rates-graph/block-fee-rates-graph.component.scss @@ -23,7 +23,6 @@ min-height: 500px; height: calc(100% - 150px); @media (max-width: 992px) { - height: 100%; padding-bottom: 100px; }; } diff --git a/frontend/src/app/components/block-fees-graph/block-fees-graph.component.scss b/frontend/src/app/components/block-fees-graph/block-fees-graph.component.scss index c5a217983..f916bfc79 100644 --- a/frontend/src/app/components/block-fees-graph/block-fees-graph.component.scss +++ b/frontend/src/app/components/block-fees-graph/block-fees-graph.component.scss @@ -23,7 +23,6 @@ min-height: 500px; height: calc(100% - 150px); @media (max-width: 992px) { - height: 100%; padding-bottom: 100px; }; } diff --git a/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.scss b/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.scss index c5a217983..f916bfc79 100644 --- a/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.scss +++ b/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.scss @@ -23,7 +23,6 @@ min-height: 500px; height: calc(100% - 150px); @media (max-width: 992px) { - height: 100%; padding-bottom: 100px; }; } diff --git a/frontend/src/app/components/block-rewards-graph/block-rewards-graph.component.scss b/frontend/src/app/components/block-rewards-graph/block-rewards-graph.component.scss index c5a217983..f916bfc79 100644 --- a/frontend/src/app/components/block-rewards-graph/block-rewards-graph.component.scss +++ b/frontend/src/app/components/block-rewards-graph/block-rewards-graph.component.scss @@ -23,7 +23,6 @@ min-height: 500px; height: calc(100% - 150px); @media (max-width: 992px) { - height: 100%; padding-bottom: 100px; }; } diff --git a/frontend/src/app/components/block-sizes-weights-graph/block-sizes-weights-graph.component.scss b/frontend/src/app/components/block-sizes-weights-graph/block-sizes-weights-graph.component.scss index 7b1395d78..e5e4bfd9a 100644 --- a/frontend/src/app/components/block-sizes-weights-graph/block-sizes-weights-graph.component.scss +++ b/frontend/src/app/components/block-sizes-weights-graph/block-sizes-weights-graph.component.scss @@ -23,7 +23,6 @@ min-height: 500px; height: calc(100% - 150px); @media (max-width: 992px) { - height: 100%; padding-bottom: 100px; }; } diff --git a/frontend/src/app/components/hashrate-chart/hashrate-chart.component.scss b/frontend/src/app/components/hashrate-chart/hashrate-chart.component.scss index 3021cf689..8718caf9b 100644 --- a/frontend/src/app/components/hashrate-chart/hashrate-chart.component.scss +++ b/frontend/src/app/components/hashrate-chart/hashrate-chart.component.scss @@ -23,7 +23,6 @@ min-height: 500px; height: calc(100% - 150px); @media (max-width: 992px) { - height: 100%; padding-bottom: 100px; }; } diff --git a/frontend/src/app/components/hashrates-chart-pools/hashrate-chart-pools.component.scss b/frontend/src/app/components/hashrates-chart-pools/hashrate-chart-pools.component.scss index c382d9886..b59e21af3 100644 --- a/frontend/src/app/components/hashrates-chart-pools/hashrate-chart-pools.component.scss +++ b/frontend/src/app/components/hashrates-chart-pools/hashrate-chart-pools.component.scss @@ -23,7 +23,6 @@ min-height: 500px; height: calc(100% - 150px); @media (max-width: 992px) { - height: 100%; padding-bottom: 100px; }; } diff --git a/frontend/src/app/lightning/lightning-dashboard/lightning-dashboard.component.html b/frontend/src/app/lightning/lightning-dashboard/lightning-dashboard.component.html index 16d02807c..143356838 100644 --- a/frontend/src/app/lightning/lightning-dashboard/lightning-dashboard.component.html +++ b/frontend/src/app/lightning/lightning-dashboard/lightning-dashboard.component.html @@ -83,11 +83,12 @@ - + -
diff --git a/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.scss b/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.scss index 4ff4dbf3e..366d75a94 100644 --- a/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.scss +++ b/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.scss @@ -23,7 +23,6 @@ min-height: 500px; height: calc(100% - 150px); @media (max-width: 992px) { - height: 100%; padding-bottom: 100px; }; } diff --git a/frontend/src/app/lightning/statistics-chart/lightning-statistics-chart.component.scss b/frontend/src/app/lightning/statistics-chart/lightning-statistics-chart.component.scss index c9b835054..7c7d38ed9 100644 --- a/frontend/src/app/lightning/statistics-chart/lightning-statistics-chart.component.scss +++ b/frontend/src/app/lightning/statistics-chart/lightning-statistics-chart.component.scss @@ -23,7 +23,6 @@ min-height: 500px; height: calc(100% - 150px); @media (max-width: 992px) { - height: 100%; padding-bottom: 100px; }; } From 1cf3e1814bacdfb829c0ab56d09e48aa62a8fe27 Mon Sep 17 00:00:00 2001 From: softsimon Date: Thu, 26 Jan 2023 23:18:12 +0400 Subject: [PATCH 3/4] Fix node chart legend position error --- .../nodes-networks-chart/nodes-networks-chart.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.ts b/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.ts index abf104e2f..20ce5cc6f 100644 --- a/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.ts +++ b/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.ts @@ -413,7 +413,7 @@ export class NodesNetworksChartComponent implements OnInit { }], }; - if (isMobile()) { + if (isMobile() && this.chartOptions.legend) { // @ts-ignore this.chartOptions.legend.left = 50; } From 2c2003af5a94ce099ee0a839106bbb1b2e5efc5c Mon Sep 17 00:00:00 2001 From: softsimon Date: Fri, 27 Jan 2023 14:18:50 +0400 Subject: [PATCH 4/4] Fix for disabling block audit below block height --- frontend/src/app/components/block/block.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/components/block/block.component.ts b/frontend/src/app/components/block/block.component.ts index 719d38528..05c5db41a 100644 --- a/frontend/src/app/components/block/block.component.ts +++ b/frontend/src/app/components/block/block.component.ts @@ -616,17 +616,17 @@ export class BlockComponent implements OnInit, OnDestroy { switch (this.stateService.network) { case 'testnet': if (blockHeight < this.stateService.env.TESTNET_BLOCK_AUDIT_START_HEIGHT) { - this.setAuditAvailable(true); + this.setAuditAvailable(false); } break; case 'signet': if (blockHeight < this.stateService.env.SIGNET_BLOCK_AUDIT_START_HEIGHT) { - this.setAuditAvailable(true); + this.setAuditAvailable(false); } break; default: if (blockHeight < this.stateService.env.MAINNET_BLOCK_AUDIT_START_HEIGHT) { - this.setAuditAvailable(true); + this.setAuditAvailable(false); } } }