From 33422f1744439339847288795ba1b150ae8efa2a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 13 Jul 2020 17:39:57 +0100 Subject: [PATCH] Switch out Labs spinner to be the Flow-generated from Design Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- res/css/views/elements/_Spinner.scss | 10 -- res/img/spinner.svg | 144 +++++++++++++++++- .../views/elements/InlineSpinner.js | 5 +- src/components/views/elements/Spinner.js | 5 +- 4 files changed, 143 insertions(+), 21 deletions(-) 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 ( -