diff --git a/res/css/views/emojipicker/_EmojiPicker.scss b/res/css/views/emojipicker/_EmojiPicker.scss index 8f57d97833..3bf6845c85 100644 --- a/res/css/views/emojipicker/_EmojiPicker.scss +++ b/res/css/views/emojipicker/_EmojiPicker.scss @@ -114,6 +114,15 @@ limitations under the License. cursor: pointer; } +.mx_EmojiPicker_search_icon { + width: 16px; + margin: 8px; +} + +.mx_EmojiPicker_search_icon:not(.mx_EmojiPicker_search_clear) { + pointer-events: none; +} + .mx_EmojiPicker_search_icon::after { mask: url('$(res)/img/emojipicker/search.svg') no-repeat; mask-size: 100%; diff --git a/src/components/views/emojipicker/Search.js b/src/components/views/emojipicker/Search.js index 8646559fed..3432dadea8 100644 --- a/src/components/views/emojipicker/Search.js +++ b/src/components/views/emojipicker/Search.js @@ -35,13 +35,22 @@ class Search extends React.PureComponent { } render() { + let rightButton; + if (this.props.query) { + rightButton = ( +