From 94fdba9a31c02b817afc5832a488194ecde23132 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Thu, 15 Jun 2017 20:07:00 +0500 Subject: 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 --- webapp/components/form_error.jsx | 10 ++++++++++ webapp/components/setting_picture.jsx | 10 +++++++--- webapp/components/user_profile.jsx | 7 ++++++- webapp/sass/layout/_post.scss | 4 ++++ webapp/sass/responsive/_mobile.scss | 6 ++++++ webapp/utils/utils.jsx | 6 ++++-- 6 files changed, 37 insertions(+), 6 deletions(-) (limited to 'webapp') diff --git a/webapp/components/form_error.jsx b/webapp/components/form_error.jsx index b3ac3fef0..e8c3d1e98 100644 --- a/webapp/components/form_error.jsx +++ b/webapp/components/form_error.jsx @@ -43,6 +43,16 @@ export default class FormError extends React.Component { return null; } + if (this.props.type === 'modal') { + return ( +
+ +
+ ); + } + if (this.props.type === 'backstage') { return (
diff --git a/webapp/components/setting_picture.jsx b/webapp/components/setting_picture.jsx index 93d41a312..2d389a902 100644 --- a/webapp/components/setting_picture.jsx +++ b/webapp/components/setting_picture.jsx @@ -102,14 +102,14 @@ export default class SettingPicture extends Component { } return ( -