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

Commit

Permalink
Merge pull request #1885 from matrix-org/luke/feature-app-tile-spinne…
Browse files Browse the repository at this point in the history
…r-delay2

Improve appearance of short-lived app loading spinner
  • Loading branch information
lukebarnard1 authored May 9, 2018
2 parents 7d0406b + 0c18466 commit d304e0a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions res/css/views/rooms/_AppsDrawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,19 @@ form.mx_Custom_Widget_Form div {
right: 0;
}

.mx_AppLoading_spinner_fadeIn {
animation-fill-mode: backwards;
animation-duration: 200ms;
animation-delay: 500ms;
animation-name: mx_AppLoading_spinner_fadeIn_animation;
}

@keyframes mx_AppLoading_spinner_fadeIn_animation {
from { opacity: 0 }
to { opacity: 1 }
}


.mx_AppLoading iframe {
display: none;
}
2 changes: 1 addition & 1 deletion src/components/views/elements/AppTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ export default class AppTile extends React.Component {

if (this.props.show) {
const loadingElement = (
<div>
<div className="mx_AppLoading_spinner_fadeIn">
<MessageSpinner msg='Loading...' />
</div>
);
Expand Down

0 comments on commit d304e0a

Please sign in to comment.