diff --git a/res/css/views/rooms/_AppsDrawer.pcss b/res/css/views/rooms/_AppsDrawer.pcss index 4580b9c1335..b96d14becb8 100644 --- a/res/css/views/rooms/_AppsDrawer.pcss +++ b/res/css/views/rooms/_AppsDrawer.pcss @@ -379,7 +379,7 @@ $MinWidth: 240px; } } -.mx_AppLoading { +.mx_AppTile_loading { display: flex; flex-direction: column; justify-content: center; @@ -391,24 +391,26 @@ $MinWidth: 240px; /* match bg of border so that the cut corners have the right fill */ background-color: $widget-body-bg-color !important; border-radius: 8px; -} -.mx_AppLoading .mx_Spinner { - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; -} + iframe { + display: none; + } -.mx_AppLoading_spinner_fadeIn { - animation-fill-mode: backwards; - animation-duration: 200ms; - animation-delay: 500ms; - animation-name: mx_AppLoading_spinner_fadeIn_animation; + /* const loadingElement */ + .mx_AppTile_loading_fadeInSpinner { + animation-fill-mode: backwards; + animation-duration: 200ms; + animation-delay: 500ms; + animation-name: mx_AppTile_loading_fadeInSpinnerAnimation; + + .mx_Spinner { + position: absolute; + inset: 0; + } + } } -@keyframes mx_AppLoading_spinner_fadeIn_animation { +@keyframes mx_AppTile_loading_fadeInSpinnerAnimation { from { opacity: 0; } @@ -417,10 +419,6 @@ $MinWidth: 240px; } } -.mx_AppLoading iframe { - display: none; -} - .mx_AppsDrawer_resizing .mx_AppTile_persistedWrapper { z-index: 1; } diff --git a/src/components/views/elements/AppTile.tsx b/src/components/views/elements/AppTile.tsx index ddb14ebff1e..9b6a8141948 100644 --- a/src/components/views/elements/AppTile.tsx +++ b/src/components/views/elements/AppTile.tsx @@ -573,7 +573,7 @@ export default class AppTile extends React.Component { } const loadingElement = ( -
+
); @@ -603,7 +603,7 @@ export default class AppTile extends React.Component { } else if (this.state.initialising || !this.state.isUserProfileReady) { appTileBody = (
{loadingElement} @@ -619,7 +619,7 @@ export default class AppTile extends React.Component { } else { appTileBody = (
{this.state.loading && loadingElement}