+
+
@@ -52,7 +64,7 @@
@@ -62,7 +74,7 @@
diff --git a/frontend/src/app/lightning/lightning-dashboard/lightning-dashboard.component.scss b/frontend/src/app/lightning/lightning-dashboard/lightning-dashboard.component.scss
index 4fdadd57b..303591974 100644
--- a/frontend/src/app/lightning/lightning-dashboard/lightning-dashboard.component.scss
+++ b/frontend/src/app/lightning/lightning-dashboard/lightning-dashboard.component.scss
@@ -14,6 +14,13 @@
background-color: #1d1f31;
}
+.graph-card {
+ height: 100%;
+ @media (min-width: 992px) {
+ height: 385px;
+ }
+}
+
.card-title {
font-size: 1rem;
color: #4a68b9;
@@ -22,9 +29,6 @@
color: #4a68b9;
}
-.card-body {
- padding: 1.25rem 1rem 0.75rem 1rem;
-}
.card-body.pool-ranking {
padding: 1.25rem 0.25rem 0.75rem 0.25rem;
}
@@ -32,6 +36,21 @@
font-size: 22px;
}
+#blockchain-container {
+ position: relative;
+ overflow-x: scroll;
+ overflow-y: hidden;
+ scrollbar-width: none;
+ -ms-overflow-style: none;
+}
+
+#blockchain-container::-webkit-scrollbar {
+ display: none;
+}
+
+.fade-border {
+ -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 80%, transparent 100%)
+}
.main-title {
position: relative;
@@ -45,7 +64,7 @@
}
.more-padding {
- padding: 18px;
+ padding: 24px 20px !important;
}
.card-wrapper {
@@ -78,3 +97,10 @@
.card-text {
font-size: 22px;
}
+
+.title-link, .title-link:hover, .title-link:focus, .title-link:active {
+ display: block;
+ margin-bottom: 10px;
+ text-decoration: none;
+ color: inherit;
+}
\ No newline at end of file
diff --git a/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.scss b/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.scss
index 7e6b9f050..578bffc3a 100644
--- a/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.scss
+++ b/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.scss
@@ -30,21 +30,28 @@
}
.widget {
- width: 99vw;
+ width: 90vw;
+ margin-left: auto;
+ margin-right: auto;
height: 250px;
-webkit-mask: linear-gradient(0deg, #11131f00 5%, #11131fff 25%);
+ @media (max-width: 767.98px) {
+ width: 100vw;
+ }
}
.widget > .chart {
- -webkit-mask: linear-gradient(180deg, #11131f00 0%, #11131fff 20%);
min-height: 250px;
+ -webkit-mask: linear-gradient(180deg, #11131f00 0%, #11131fff 20%);
+ @media (max-width: 767.98px) {
+ padding-bottom: 0px;
+ }
}
.chart {
min-height: 500px;
width: 100%;
height: 100%;
- padding-right: 10px;
@media (max-width: 992px) {
padding-bottom: 25px;
}
diff --git a/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts b/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts
index c055ad415..27a23c854 100644
--- a/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts
+++ b/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts
@@ -8,6 +8,7 @@ import { RelativeUrlPipe } from 'src/app/shared/pipes/relative-url/relative-url.
import { StateService } from 'src/app/services/state.service';
import { EChartsOption, registerMap } from 'echarts';
import 'echarts-gl';
+import { isMobile } from 'src/app/shared/common.utils';
@Component({
selector: 'app-nodes-channels-map',
@@ -50,8 +51,15 @@ export class NodesChannelsMap implements OnInit, OnDestroy {
ngOnInit(): void {
this.center = this.style === 'widget' ? [0, 40] : [0, 5];
- this.zoom = this.style === 'widget' ? 3.5 : 1.3;
-
+ this.zoom = 1.3;
+ if (this.style === 'widget' && !isMobile()) {
+ this.zoom = 3.5;
+ }
+ if (this.style === 'widget' && isMobile()) {
+ this.zoom = 1.4;
+ this.center = [0, 10];
+ }
+
if (this.style === 'graph') {
this.seoService.setTitle($localize`Lightning nodes channels world map`);
}
diff --git a/frontend/src/app/lightning/nodes-list/nodes-list.component.html b/frontend/src/app/lightning/nodes-list/nodes-list.component.html
index 65a7a558a..d21f0b30a 100644
--- a/frontend/src/app/lightning/nodes-list/nodes-list.component.html
+++ b/frontend/src/app/lightning/nodes-list/nodes-list.component.html
@@ -3,18 +3,18 @@
Alias |
- Capacity |
- Channels |
+ Capacity |
+ Channels |
{{ node.alias }}
|
-
+ |
|
-
+ |
{{ node.channels | number }}
|
diff --git a/frontend/src/app/lightning/nodes-list/nodes-list.component.scss b/frontend/src/app/lightning/nodes-list/nodes-list.component.scss
index e69de29bb..85a1339ea 100644
--- a/frontend/src/app/lightning/nodes-list/nodes-list.component.scss
+++ b/frontend/src/app/lightning/nodes-list/nodes-list.component.scss
@@ -0,0 +1,11 @@
+.capacity.mobile-channels {
+ @media (max-width: 767.98px) {
+ display: none;
+ }
+}
+
+.channels.mobile-capacity {
+ @media (max-width: 767.98px) {
+ display: none;
+ }
+}
\ No newline at end of file
diff --git a/frontend/src/app/lightning/nodes-list/nodes-list.component.ts b/frontend/src/app/lightning/nodes-list/nodes-list.component.ts
index d6d05833e..9b9e2d594 100644
--- a/frontend/src/app/lightning/nodes-list/nodes-list.component.ts
+++ b/frontend/src/app/lightning/nodes-list/nodes-list.component.ts
@@ -9,6 +9,7 @@ import { Observable } from 'rxjs';
})
export class NodesListComponent implements OnInit {
@Input() nodes$: Observable;
+ @Input() show: string;
constructor() { }
diff --git a/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.html b/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.html
index 23f54bbba..5e14ac67b 100644
--- a/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.html
+++ b/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.html
@@ -1,6 +1,29 @@
-