summaryrefslogtreecommitdiffstats
path: root/webapp/components/user_profile.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmood@users.noreply.github.com>2017-06-15 20:07:00 +0500
committerCorey Hulen <corey@hulen.com>2017-06-15 08:07:00 -0700
commit94fdba9a31c02b817afc5832a488194ecde23132 (patch)
treefb40b326bb9055a511a0737e48ebdd3898ab3f69 /webapp/components/user_profile.jsx
parent528f2dc6c3b7c7a100d9022f4f50dfe337e92f0c (diff)
downloadchat-94fdba9a31c02b817afc5832a488194ecde23132.tar.gz
chat-94fdba9a31c02b817afc5832a488194ecde23132.tar.bz2
chat-94fdba9a31c02b817afc5832a488194ecde23132.zip
Ui improvements (#6651)
* PLT-6691 - Centering emoji in post view * PLT-6737 - FIxing on hover style for heade icons * PLT-6768 - Fixing error on profile picture * PLT-6792 - Fixing link preview image not resizing * PLT-6793 - User popover position on mobile
Diffstat (limited to 'webapp/components/user_profile.jsx')
-rw-r--r--webapp/components/user_profile.jsx7
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