From 1524d2f4d0efee251eb3ad1b9a9b7aeb690db69f Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Tue, 7 Nov 2017 01:27:45 +0900 Subject: [PATCH] Locate the loading icon at the center of the screen --- src/browser/css/components/MattermostView.css | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/browser/css/components/MattermostView.css b/src/browser/css/components/MattermostView.css index 7a0313d3..45874812 100644 --- a/src/browser/css/components/MattermostView.css +++ b/src/browser/css/components/MattermostView.css @@ -6,7 +6,7 @@ text-align: left; } -.mattermostView webview { +.mattermostView webview, .mattermostView .mattermostView-loadingScreen { position: absolute; top: 0px; right: 0px; @@ -14,7 +14,7 @@ left: 0px; } -.mattermostView-with-tab webview { +.mattermostView-with-tab webview, .mattermostView-with-tab .mattermostView-loadingScreen { top: 31px; } @@ -24,7 +24,16 @@ height: 0px; } -.mattermostView-loadingImage { - text-align: center; - margin-top: 64px; +.mattermostView-loadingScreen { + vertical-align: middle; + background: white; +} + +.mattermostView-loadingImage { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + margin: auto; }