From 903e0399a29e49220710f2a1d4f56b8ac1071ea3 Mon Sep 17 00:00:00 2001 From: Chris Duarte Date: Thu, 30 Mar 2017 14:27:34 -0700 Subject: [PATCH] PLT-6129 There's no cutout in the profile picture for the offline indicator (React) (#436) --- .../profile_picture/profile_picture.js | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/app/components/profile_picture/profile_picture.js b/app/components/profile_picture/profile_picture.js index a12b13ce8..c577b11ca 100644 --- a/app/components/profile_picture/profile_picture.js +++ b/app/components/profile_picture/profile_picture.js @@ -65,6 +65,20 @@ export default class ProfilePicture extends React.PureComponent { size={this.props.statusIconSize} /> ); + } else { + statusIcon = ( + + ); } return ( @@ -82,9 +96,9 @@ export default class ProfilePicture extends React.PureComponent { width: this.props.statusSize, height: this.props.statusSize, borderWidth: this.props.statusBorderWidth, - borderRadius: this.props.statusSize / 2 - }, - (this.props.status === 'offline' && style.offline) + borderRadius: this.props.statusSize / 2, + borderColor: this.props.theme.centerChannelBg + } ]} > { right: 0, overflow: 'hidden', alignItems: 'center', - justifyContent: 'center', - borderColor: theme.centerChannelBg + justifyContent: 'center' }, statusContainer: { alignItems: 'center', @@ -134,7 +147,9 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => { backgroundColor: theme.awayIndicator }, offline: { - backgroundColor: theme.centerChannelBg, + backgroundColor: theme.centerChannelBg + }, + offlineIcon: { borderColor: '#bababa' } });