From 0231e95f1c5a8c42ba97875f0d2301815f552974 Mon Sep 17 00:00:00 2001
From: Saturnino Abril <saturnino.abril@gmail.com>
Date: Mon, 19 Jun 2017 02:23:17 +0800
Subject: Fix Emoji picker cut off at RHS (#6602)

---
 webapp/components/emoji_picker/emoji_picker.jsx | 26 +++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

(limited to 'webapp/components/emoji_picker/emoji_picker.jsx')

diff --git a/webapp/components/emoji_picker/emoji_picker.jsx b/webapp/components/emoji_picker/emoji_picker.jsx
index cbb388a10..2a5b84747 100644
--- a/webapp/components/emoji_picker/emoji_picker.jsx
+++ b/webapp/components/emoji_picker/emoji_picker.jsx
@@ -240,20 +240,26 @@ export default class EmojiPicker extends React.Component {
                 // This is a custom emoji that matches the model on the server
                 name = selected.name;
                 aliases = [selected.name];
-                previewImage = (<img
-                    className='emoji-picker__preview-image'
-                    align='absmiddle'
-                    src={EmojiStore.getEmojiImageUrl(selected)}
-                                />);
+                previewImage = (
+                    <img
+                        className='emoji-picker__preview-image'
+                        align='absmiddle'
+                        src={EmojiStore.getEmojiImageUrl(selected)}
+                    />
+                );
             } else {
                 // This is a system emoji which only has a list of aliases
                 name = selected.aliases[0];
                 aliases = selected.aliases;
-                previewImage = (<span ><img
-                    src='/static/emoji/img_trans.gif'
-                    className={'  emojisprite-preview emoji-' + selected.filename + ' '}
-                    align='absmiddle'
-                                       /></span>);
+                previewImage = (
+                    <span>
+                        <img
+                            src='/static/emoji/img_trans.gif'
+                            className={'  emojisprite-preview emoji-' + selected.filename + ' '}
+                            align='absmiddle'
+                        />
+                    </span>
+                );
             }
 
             return (
-- 
cgit v1.2.3-1-g7c22

