mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 03:05:51 +03:00
Merge pull request #3082 from vector-im/luke/feature-optional-custom-login-logo
Allow a custom login logo to be displayed on login
This commit is contained in:
commit
78105bb4db
2 changed files with 9 additions and 1 deletions
|
@ -23,11 +23,14 @@ module.exports = React.createClass({
|
||||||
statics: {
|
statics: {
|
||||||
replaces: 'LoginHeader',
|
replaces: 'LoginHeader',
|
||||||
},
|
},
|
||||||
|
propTypes: {
|
||||||
|
icon: React.PropTypes.string,
|
||||||
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<div className="mx_Login_logo">
|
<div className="mx_Login_logo">
|
||||||
<img src="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 a new issue