From cb91271e23b088e584b17cd64a14ecbcc1364080 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 30 Jan 2018 22:21:31 -0800 Subject: [PATCH] fix loading spinner --- routes/_components/timeline/LazyTimeline.html | 33 ++----------------- routes/_components/timeline/Timeline.html | 21 +++++++++++- 2 files changed, 23 insertions(+), 31 deletions(-) diff --git a/routes/_components/timeline/LazyTimeline.html b/routes/_components/timeline/LazyTimeline.html index 8e384395..027cb66d 100644 --- a/routes/_components/timeline/LazyTimeline.html +++ b/routes/_components/timeline/LazyTimeline.html @@ -1,12 +1,5 @@
- {{#if !$initialized}} - -
- -
- - {{/if}} - {{#await promise}} + {{#await importTimeline}} {{then constructor}} <:Component {constructor} :timeline /> {{catch error}} @@ -18,23 +11,9 @@ width: 100%; min-height: 60vh; } - .loading-page { - position: fixed; - top: 0; - left: 0; - bottom: 0; - right: 0; - display: flex; - align-items: center; - justify-content: center; - z-index: 50; - } \ No newline at end of file diff --git a/routes/_components/timeline/Timeline.html b/routes/_components/timeline/Timeline.html index c1ef8bb1..58d98507 100644 --- a/routes/_components/timeline/Timeline.html +++ b/routes/_components/timeline/Timeline.html @@ -1,4 +1,9 @@
+ {{#if !$initialized}} +
+ +
+ {{/if}} {{#if virtual}} .timeline { min-height: 60vh; + position: relative; + } + .loading-page { + position: absolute; + top: 0; + left: 0; + right: 0; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 50; }