From dd9ff41fdedf323181658557353428dc29672e37 Mon Sep 17 00:00:00 2001 From: softsimon Date: Tue, 30 Aug 2022 10:42:50 +0200 Subject: [PATCH] Skeleton loader updates --- .../lightning/channel/channel.component.html | 6 +++++- .../lightning/channel/channel.component.scss | 12 ++++++++++++ .../app/lightning/node/node.component.html | 19 ++++++++++++++----- .../app/lightning/node/node.component.scss | 9 ++++++++- .../src/app/lightning/node/node.component.ts | 8 +------- 5 files changed, 40 insertions(+), 14 deletions(-) diff --git a/frontend/src/app/lightning/channel/channel.component.html b/frontend/src/app/lightning/channel/channel.component.html index e791dbe12..195c35324 100644 --- a/frontend/src/app/lightning/channel/channel.component.html +++ b/frontend/src/app/lightning/channel/channel.component.html @@ -103,7 +103,11 @@
-
+
+
+
+
+

diff --git a/frontend/src/app/lightning/channel/channel.component.scss b/frontend/src/app/lightning/channel/channel.component.scss index bf080b644..c23d8e28c 100644 --- a/frontend/src/app/lightning/channel/channel.component.scss +++ b/frontend/src/app/lightning/channel/channel.component.scss @@ -56,3 +56,15 @@ app-fiat { font-size: 1.4rem; } } + + +.loading-spinner { + position: absolute; + top: 400px; + z-index: 100; + width: 100%; + left: 0; + @media (max-width: 767.98px) { + top: 450px; + } +} \ No newline at end of file diff --git a/frontend/src/app/lightning/node/node.component.html b/frontend/src/app/lightning/node/node.component.html index b08f3ccb2..526608363 100644 --- a/frontend/src/app/lightning/node/node.component.html +++ b/frontend/src/app/lightning/node/node.component.html @@ -4,7 +4,8 @@

{{ node.alias }}

- {{ node.public_key | shortenString : publicKeySize }} + {{ node.public_key | shortenString : 24 }} + {{ node.public_key }} @@ -157,7 +158,7 @@
Lightning node
-

+

@@ -219,7 +220,7 @@
- + @@ -232,10 +233,18 @@
-
+
+
+
+
+
-
+
+
+
+
+
diff --git a/frontend/src/app/lightning/node/node.component.scss b/frontend/src/app/lightning/node/node.component.scss index b2e6f573b..481f2a8c4 100644 --- a/frontend/src/app/lightning/node/node.component.scss +++ b/frontend/src/app/lightning/node/node.component.scss @@ -69,4 +69,11 @@ app-fiat { width: 1.5rem; height: 1.5rem; } -} \ No newline at end of file +} + +.loadingGraphs { + position: absolute; + top: 50%; + left: calc(50% - 15px); + z-index: 100; +} diff --git a/frontend/src/app/lightning/node/node.component.ts b/frontend/src/app/lightning/node/node.component.ts index bfee9252d..aad8e14d0 100644 --- a/frontend/src/app/lightning/node/node.component.ts +++ b/frontend/src/app/lightning/node/node.component.ts @@ -4,7 +4,6 @@ import { Observable } from 'rxjs'; import { catchError, map, switchMap } from 'rxjs/operators'; import { SeoService } from 'src/app/services/seo.service'; import { LightningApiService } from '../lightning-api.service'; -import { isMobile } from '../../shared/common.utils'; import { GeolocationData } from 'src/app/shared/components/geolocation/geolocation.component'; @Component({ @@ -23,17 +22,12 @@ export class NodeComponent implements OnInit { error: Error; publicKey: string; channelListLoading = false; - publicKeySize = 99; constructor( private lightningApiService: LightningApiService, private activatedRoute: ActivatedRoute, private seoService: SeoService, - ) { - if (isMobile()) { - this.publicKeySize = 12; - } - } + ) { } ngOnInit(): void { this.node$ = this.activatedRoute.paramMap