You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
Center loading spinner.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user