mirror of https://github.com/vector-im/riot-web
fix comedy scrolling parallax avatar initial bug
parent
66add5673b
commit
1f69760173
|
@ -23,4 +23,8 @@ limitations under the License.
|
||||||
position: absolute;
|
position: absolute;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_MemberAvatar_wrapper {
|
||||||
|
position: relative;
|
||||||
}
|
}
|
|
@ -49,7 +49,7 @@ module.exports = React.createClass({
|
||||||
initial = this.props.member.name[1].toUpperCase();
|
initial = this.props.member.name[1].toUpperCase();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span>
|
<span className="mx_MemberAvatar_wrapper">
|
||||||
<span className="mx_MemberAvatar_initial"
|
<span className="mx_MemberAvatar_initial"
|
||||||
style={{ fontSize: (this.props.width * 0.75) + "px",
|
style={{ fontSize: (this.props.width * 0.75) + "px",
|
||||||
width: this.props.width + "px",
|
width: this.props.width + "px",
|
||||||
|
|
Loading…
Reference in New Issue