diff options
Diffstat (limited to 'webapp/components/user_profile.jsx')
-rw-r--r-- | webapp/components/user_profile.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/user_profile.jsx b/webapp/components/user_profile.jsx index 5fb01b725..b3290d1de 100644 --- a/webapp/components/user_profile.jsx +++ b/webapp/components/user_profile.jsx @@ -56,6 +56,11 @@ export default class UserProfile extends React.Component { render() { let name = '...'; let profileImg = ''; + let popoverPosition = 'right'; + if (Utils.isMobile()) { + popoverPosition = 'bottom'; + } + if (this.props.user) { name = Utils.displayUsername(this.props.user.id); profileImg = Client.getUsersRoute() + '/' + this.props.user.id + '/image?time=' + this.props.user.last_picture_update; @@ -73,7 +78,7 @@ export default class UserProfile extends React.Component { <OverlayTrigger ref='overlay' trigger='click' - placement='right' + placement={popoverPosition} rootClose={true} overlay={ <ProfilePopover |