mirror of https://github.com/vector-im/riot-web
Center loading spinner.
parent
a81269cba8
commit
de33294000
|
@ -496,7 +496,7 @@ export default class AppTile extends React.Component {
|
||||||
|
|
||||||
if (this.props.show) {
|
if (this.props.show) {
|
||||||
const loadingElement = (
|
const loadingElement = (
|
||||||
<div className='mx_AppTileBody mx_AppLoading'>
|
<div>
|
||||||
<MessageSpinner msg='Loading...' />
|
<MessageSpinner msg='Loading...' />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -511,7 +511,7 @@ export default class AppTile extends React.Component {
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
appTileBody = (
|
appTileBody = (
|
||||||
<div className={this.state.loading ? 'mx_AppTileBody mx_AppLoading' : 'mx_AppTileBody'}>
|
<div className={'mx_AppTileBody ' + (this.state.loading ? 'mx_AppLoading' : '')}>
|
||||||
{ this.state.loading && loadingElement }
|
{ this.state.loading && loadingElement }
|
||||||
{ /*
|
{ /*
|
||||||
The "is" attribute in the following iframe tag is needed in order to enable rendering of the
|
The "is" attribute in the following iframe tag is needed in order to enable rendering of the
|
||||||
|
|
Loading…
Reference in New Issue