summaryrefslogtreecommitdiffstats
path: root/webapp/components/rhs_root_post.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/rhs_root_post.jsx')
-rw-r--r--webapp/components/rhs_root_post.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx
index b70b284d9..230e4bb2d 100644
--- a/webapp/components/rhs_root_post.jsx
+++ b/webapp/components/rhs_root_post.jsx
@@ -230,8 +230,10 @@ export default class RhsRootPost extends React.Component {
}
let compactClass = '';
+ let profilePicContainer = (<div className='post__img'>{profilePic}</div>);
if (this.props.compactDisplay) {
compactClass = 'post--compact';
+ profilePicContainer = '';
}
const messageWrapper = (
@@ -246,9 +248,7 @@ export default class RhsRootPost extends React.Component {
<div className={'post post--root post--thread ' + userCss + ' ' + systemMessageClass + ' ' + compactClass}>
<div className='post-right-channel__name'>{channelName}</div>
<div className='post__content'>
- <div className='post__img'>
- {profilePic}
- </div>
+ {profilePicContainer}
<div>
<ul className='post__header'>
<li className='col__name'>{userProfile}</li>