diff --git a/res/css/views/elements/_Spinner.scss b/res/css/views/elements/_Spinner.scss index 6966a60e52..01b4f23c2c 100644 --- a/res/css/views/elements/_Spinner.scss +++ b/res/css/views/elements/_Spinner.scss @@ -23,16 +23,6 @@ limitations under the License. flex: 1; } -.mx_Spinner_spin img { - animation: spin 1s linear infinite; -} - -@keyframes spin { - 100% { - transform: rotate(360deg); - } -} - .mx_MatrixChat_middlePanel .mx_Spinner { height: auto; } diff --git a/res/img/spinner.svg b/res/img/spinner.svg index a18140c7e2..08965e982e 100644 --- a/res/img/spinner.svg +++ b/res/img/spinner.svg @@ -1,3 +1,141 @@ - \ No newline at end of file + + diff --git a/src/components/views/elements/InlineSpinner.js b/src/components/views/elements/InlineSpinner.js index ad88868790..89b5e6f19d 100644 --- a/src/components/views/elements/InlineSpinner.js +++ b/src/components/views/elements/InlineSpinner.js @@ -27,18 +27,15 @@ export default createReactClass({ const h = this.props.h || 16; const imgClass = this.props.imgClassName || ""; - let divClass; let imageSource; if (SettingsStore.isFeatureEnabled('feature_new_spinner')) { - divClass = "mx_InlineSpinner mx_Spinner_spin"; imageSource = require("../../../../res/img/spinner.svg"); } else { - divClass = "mx_InlineSpinner"; imageSource = require("../../../../res/img/spinner.gif"); } return ( -