From 06b48b08425972d4c0ae57615173d70d12aeb5bd Mon Sep 17 00:00:00 2001 From: bobzel Date: Sun, 10 Sep 2023 16:32:41 -0400 Subject: once more --- src/client/views/nodes/LoadingBox.scss | 37 ++++++++++++---------------------- src/client/views/nodes/LoadingBox.tsx | 10 ++++++--- 2 files changed, 20 insertions(+), 27 deletions(-) diff --git a/src/client/views/nodes/LoadingBox.scss b/src/client/views/nodes/LoadingBox.scss index ff25a8133..cabd4de05 100644 --- a/src/client/views/nodes/LoadingBox.scss +++ b/src/client/views/nodes/LoadingBox.scss @@ -7,37 +7,26 @@ height: 100%; width: 100%; align-items: center; - .textContainer, + .loadingBox-textContainer, .loadingBox-title { text-overflow: ellipsis; max-width: 80%; text-align: center; - display: flex; - flex-direction: column; + display: block; gap: 8px; align-items: center; white-space: normal; word-break: all; + .loadingBox-headerText { + text-align: center; + font-weight: bold; + height: auto; + width: 100%; + } + } + .loadingBox-spinner { + position: absolute; + top: 0; + left: 0; } -} - -.textContainer { - margin: 5px; - display: block; -} - -.textContainer { - justify-content: center; - align-content: center; -} - -.headerText { - text-align: center; - font-weight: bold; - height: auto; - width: 100%; -} - -.spinner { - text-align: center; } diff --git a/src/client/views/nodes/LoadingBox.tsx b/src/client/views/nodes/LoadingBox.tsx index 4a030ff66..bdc074e0c 100644 --- a/src/client/views/nodes/LoadingBox.tsx +++ b/src/client/views/nodes/LoadingBox.tsx @@ -58,10 +58,14 @@ export class LoadingBox extends ViewBoxAnnotatableComponent() { render() { return (
-
+
{StrCast(this.rootDoc.title)} -

{StrCast(this.rootDoc.loadingError, 'Loading ' + (this.progress.replace('[download]', '') || '(can take several minutes)'))}

- {this.rootDoc.loadingError ? null : } +

{StrCast(this.rootDoc.loadingError, 'Loading ' + (this.progress.replace('[download]', '') || '(can take several minutes)'))}

+ {this.rootDoc.loadingError ? null : ( +
+ +
+ )}
); -- cgit v1.2.3-70-g09d2