summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/post_view/components/post.jsx13
-rw-r--r--webapp/components/select_team/select_team.jsx2
2 files changed, 12 insertions, 3 deletions
diff --git a/webapp/components/post_view/components/post.jsx b/webapp/components/post_view/components/post.jsx
index 7eeffb039..6a5994469 100644
--- a/webapp/components/post_view/components/post.jsx
+++ b/webapp/components/post_view/components/post.jsx
@@ -199,6 +199,16 @@ export default class Post extends React.Component {
/>
);
+ if (this.props.compactDisplay) {
+ profilePic = (
+ <ProfilePicture
+ src=''
+ status={this.props.status}
+ user={this.props.user}
+ />
+ );
+ }
+
if (PostUtils.isSystemMessage(post)) {
profilePic = (
<span
@@ -214,10 +224,9 @@ export default class Post extends React.Component {
}
let compactClass = '';
- let profilePicContainer = (<div className='post__img'>{profilePic}</div>);
+ const profilePicContainer = (<div className='post__img'>{profilePic}</div>);
if (this.props.compactDisplay) {
compactClass = 'post--compact';
- profilePicContainer = '';
}
let dropdownOpenedClass = '';
diff --git a/webapp/components/select_team/select_team.jsx b/webapp/components/select_team/select_team.jsx
index e6156ecb9..5f8d9f463 100644
--- a/webapp/components/select_team/select_team.jsx
+++ b/webapp/components/select_team/select_team.jsx
@@ -193,7 +193,7 @@ export default class SelectTeam extends React.Component {
let adminConsoleLink;
if (isSystemAdmin) {
adminConsoleLink = (
- <div className='margin--extra'>
+ <div className='margin--extra hidden-xs'>
<Link
to='/admin_console'
className='signup-team-login'