From 73392de4bc191d5536e613b6a03275cb3f37efbb Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Thu, 23 Feb 2023 00:13:49 -0800 Subject: [PATCH 1/3] hide category picker while searching --- src/components/EmojiPicker/EmojiPickerMenu/index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/EmojiPicker/EmojiPickerMenu/index.js b/src/components/EmojiPicker/EmojiPickerMenu/index.js index d1c18569766d..1b2fe190540b 100755 --- a/src/components/EmojiPicker/EmojiPickerMenu/index.js +++ b/src/components/EmojiPicker/EmojiPickerMenu/index.js @@ -466,15 +466,18 @@ class EmojiPickerMenu extends Component { } render() { + const isFiltered = this.emojis.length !== this.state.filteredEmojis.length; return ( - + {!isFiltered && ( + + )} {!this.props.isSmallScreenWidth && ( Date: Thu, 23 Feb 2023 00:16:05 -0800 Subject: [PATCH 2/3] put category picker below search field --- src/components/EmojiPicker/EmojiPickerMenu/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/EmojiPicker/EmojiPickerMenu/index.js b/src/components/EmojiPicker/EmojiPickerMenu/index.js index 1b2fe190540b..580fba10125f 100755 --- a/src/components/EmojiPicker/EmojiPickerMenu/index.js +++ b/src/components/EmojiPicker/EmojiPickerMenu/index.js @@ -472,12 +472,6 @@ class EmojiPickerMenu extends Component { style={[styles.emojiPickerContainer, StyleUtils.getEmojiPickerStyle(this.props.isSmallScreenWidth)]} pointerEvents={this.state.arePointerEventsDisabled ? 'none' : 'auto'} > - {!isFiltered && ( - - )} {!this.props.isSmallScreenWidth && ( )} + {!isFiltered && ( + + )} {this.state.filteredEmojis.length === 0 ? ( Date: Fri, 24 Feb 2023 08:26:17 -0800 Subject: [PATCH 3/3] add padding top to search field --- src/components/EmojiPicker/EmojiPickerMenu/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EmojiPicker/EmojiPickerMenu/index.js b/src/components/EmojiPicker/EmojiPickerMenu/index.js index 580fba10125f..3bbb2951ef17 100755 --- a/src/components/EmojiPicker/EmojiPickerMenu/index.js +++ b/src/components/EmojiPicker/EmojiPickerMenu/index.js @@ -473,7 +473,7 @@ class EmojiPickerMenu extends Component { pointerEvents={this.state.arePointerEventsDisabled ? 'none' : 'auto'} > {!this.props.isSmallScreenWidth && ( - +