Style loading view

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-07-15 16:25:59 +05:30
parent be46d870aa
commit 5a54be2e2e
3 changed files with 16 additions and 1 deletions

View file

@ -212,3 +212,9 @@ the layout viewport up without resizing it when the keyboard shows */
.LazyListParent { .LazyListParent {
height: 100vh; height: 100vh;
} }
.LoadingView {
display: flex;
justify-content: center;
align-items: center;
}

View file

@ -787,6 +787,15 @@ button.link {
width: 100%; width: 100%;
} }
.LoadingView {
height: 100%;
width: 100%;
}
.LoadingView .spinner {
margin-left: 5px;
}
/* Right Panel */ /* Right Panel */
.RightPanelView { .RightPanelView {

View file

@ -3,6 +3,6 @@ import {spinner} from "../../common.js";
export class LoadingView extends TemplateView { export class LoadingView extends TemplateView {
render(t) { render(t) {
return t.div(["Loading ", spinner(t)]); return t.div({ className: "LoadingView" }, ["Loading", spinner(t)]);
} }
} }