mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
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)
This commit is contained in:
parent
02d6a10f67
commit
87db89b67a
@ -30,7 +30,7 @@ module.exports = React.createClass({
|
|||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<div className="mx_Login_logo">
|
<div className="mx_Login_logo">
|
||||||
<img src={this.props.icon || "img/logo.png"} width="195" height="195" alt="Riot"/>
|
<img src={this.props.icon || "img/logo.png"} alt="Riot"/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,11 @@ limitations under the License.
|
|||||||
|
|
||||||
.mx_Login_logo {
|
.mx_Login_logo {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
height: 195px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_Login_logo img {
|
||||||
|
height: 100%
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_Login_field {
|
.mx_Login_field {
|
||||||
|
Loading…
Reference in New Issue
Block a user