aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Avatar.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/Avatar.js')
-rw-r--r--vnext/src/components/Avatar.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/vnext/src/components/Avatar.js b/vnext/src/components/Avatar.js
index 002badde..e2023649 100644
--- a/vnext/src/components/Avatar.js
+++ b/vnext/src/components/Avatar.js
@@ -8,12 +8,14 @@ import Icon from './Icon';
const Avatar = React.memo(props => {
return (
- <div style={Object.assign({ display: 'flex', padding: '12px' }, props.style)}>
+ <div style={Object.assign({ display: 'flex', padding: '12px', width: '300px' }, props.style)}>
<div className="msg-avatar">
{
props.user.uname ?
<Link to={{ pathname: props.link || `/${props.user.uname}/` }}>
- <img src={props.user.avatar} alt={`${props.user.uname}`} />
+ { props.user.avatar ?
+ <img src={props.user.avatar} alt={`${props.user.uname}`} />
+ : <Icon name="ei-spinner" size="m" /> }
</Link>
: <Icon name="ei-spinner" size="m" />
}