diff --git a/src/UniversalDashboard/Styles/site.css b/src/UniversalDashboard/Styles/site.css index 0ccdf786..f912261e 100644 --- a/src/UniversalDashboard/Styles/site.css +++ b/src/UniversalDashboard/Styles/site.css @@ -2,6 +2,7 @@ body { display: flex; min-height: 100vh; flex-direction: column; + margin: 0; } .app { @@ -55,4 +56,28 @@ td { .jLRkOo { margin-top: 20px !important; margin-left: 10px !important; +} + +.v-wrap{ + height: 100% !important; + white-space: nowrap !important; + text-align: center !important; + display: block !important; + min-height: auto !important; + flex-direction: row !important; +} +.v-wrap:before{ + content: ""; + display: inline-block; + vertical-align: middle; + width: 0; + /* adjust for white space between pseudo element and next sibling */ + margin-right: -.25em; + /* stretch line height */ + height: 100vh; +} +.v-box{ + display: inline-block; + vertical-align: middle; + white-space: normal; } \ No newline at end of file diff --git a/src/client/src/app/App.jsx b/src/client/src/app/App.jsx index 5ccb5329..f7a01429 100644 --- a/src/client/src/app/App.jsx +++ b/src/client/src/app/App.jsx @@ -13,7 +13,7 @@ export default class App extends React.Component { super(); this.state = { - loading: false + loading: true } } @@ -26,22 +26,23 @@ export default class App extends React.Component { } componentWillMount() { - this.showLoader = true; this.loadJavascript(getApiPath() + "/api/internal/javascript/framework", function() { - this.showLoader = false; this.setState({ loading: false }) }.bind(this)) - - setTimeout(function(){if(this.showLoader){this.setState({loading: true})}}.bind(this), 750); } render () { var regex = new RegExp('^' + window.baseUrl + '(?!.*(\/login))(?!.*(\/license)).*$'); if (this.state.loading) { - return
+ return
+
+ +
+ +
} return (