Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 770e2d4

Browse files
committed
Improve appearance of short-lived app loading spinner
by hiding it for 500ms - thereby only showing it if the loading is taking a long time.
1 parent 0a326dc commit 770e2d4

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

res/css/views/rooms/_AppsDrawer.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,19 @@ form.mx_Custom_Widget_Form div {
266266
right: 0;
267267
}
268268

269+
.mx_AppLoading_spinner_fadeIn {
270+
animation-fill-mode: backwards;
271+
animation-duration: 200ms;
272+
animation-delay: 500ms;
273+
animation-name: mx_AppLoading_spinner_fadeIn_animation;
274+
}
275+
276+
@keyframes mx_AppLoading_spinner_fadeIn_animation {
277+
from { opacity: 0 }
278+
to { opacity: 1 }
279+
}
280+
281+
269282
.mx_AppLoading iframe {
270283
display: none;
271284
}

src/components/views/elements/AppTile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export default class AppTile extends React.Component {
529529

530530
if (this.props.show) {
531531
const loadingElement = (
532-
<div>
532+
<div className="mx_AppLoading_spinner_fadeIn">
533533
<MessageSpinner msg='Loading...' />
534534
</div>
535535
);

0 commit comments

Comments
 (0)