From 87db89b67a21a77c2535dc971022d77645cd4581 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Fri, 27 Jan 2017 16:30:44 +0000 Subject: [PATCH] Replace inline styles for logos with css Also, give .mx_Login_logo a height so that if the image has not loaded yet, it will not change height (thanks @dbkr) --- src/components/views/login/VectorLoginHeader.js | 2 +- .../vector/css/matrix-react-sdk/structures/login/_Login.scss | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/views/login/VectorLoginHeader.js b/src/components/views/login/VectorLoginHeader.js index b08c4fa609..daa2b09c67 100644 --- a/src/components/views/login/VectorLoginHeader.js +++ b/src/components/views/login/VectorLoginHeader.js @@ -30,7 +30,7 @@ module.exports = React.createClass({ render: function() { return (
- Riot + Riot
); } diff --git a/src/skins/vector/css/matrix-react-sdk/structures/login/_Login.scss b/src/skins/vector/css/matrix-react-sdk/structures/login/_Login.scss index 30231b43da..ca861c07b7 100644 --- a/src/skins/vector/css/matrix-react-sdk/structures/login/_Login.scss +++ b/src/skins/vector/css/matrix-react-sdk/structures/login/_Login.scss @@ -42,6 +42,11 @@ limitations under the License. .mx_Login_logo { text-align: center; + height: 195px; +} + +.mx_Login_logo img { + height: 100% } .mx_Login_field {