]> cat aescling's git repositories - mastodon.git/commitdiff
Remove background mask from avatars
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 19 Sep 2016 21:28:22 +0000 (23:28 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 19 Sep 2016 21:28:22 +0000 (23:28 +0200)
app/assets/javascripts/components/components/avatar.jsx
app/assets/javascripts/components/features/account/components/header.jsx

index 267d02bcdbaf7f00a0559a684165bd9acf5e7e2f..6177683ba710d5d15e071f8ded645530916fe91c 100644 (file)
@@ -11,7 +11,7 @@ const Avatar = React.createClass({
 
   render () {
     return (
-      <div style={{ width: `${this.props.size}px`, height: `${this.props.size}px`, borderRadius: '4px', overflow: 'hidden' }} className='transparent-background'>
+      <div style={{ width: `${this.props.size}px`, height: `${this.props.size}px` }}>
         <img src={this.props.src} width={this.props.size} height={this.props.size} alt='' style={{ display: 'block', borderRadius: '4px' }} />
       </div>
     );
index ecec21e55518886e4df34c5fba3749fb076f98b9..20ed7512b5d0003458c1a38787104b5f5f777bb7 100644 (file)
@@ -18,7 +18,7 @@ const Header = React.createClass({
     return (
       <div style={{ flex: '0 0 auto', background: '#2f3441', textAlign: 'center', backgroundImage: `url(${account.get('header')})`, backgroundSize: 'cover' }}>
         <div style={{ background: 'rgba(47, 52, 65, 0.8)', padding: '30px 10px' }}>
-          <div style={{ width: '90px', margin: '0 auto', marginBottom: '15px', borderRadius: '90px', overflow: 'hidden' }} className='transparent-background'>
+          <div style={{ width: '90px', margin: '0 auto', marginBottom: '15px' }}>
             <img src={account.get('avatar')} alt='' style={{ display: 'block', width: '90px', height: '90px', borderRadius: '90px' }} />
           </div>