Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CONST.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ const CONST = {
ADD_PAYMENT_MENU_POSITION_X: 356,
EMOJI_PICKER_SIZE: {
WIDTH: 320,
HEIGHT: 392,
HEIGHT: 416,

@rushatgabhane rushatgabhane Apr 11, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have increased the height of the emoji component from 392 to 416

And increased skin tone padding from p1 to p3

But we have not updated the height when there are no results. Causing #15868

{this.state.filteredEmojis.length === 0
? (
<Text
style={[
styles.disabledText,
styles.emojiPickerList,
styles.dFlex,
styles.alignItemsCenter,
styles.justifyContentCenter,
this.isMobileLandscape() && styles.emojiPickerListLandscape,
]}

Adding a flexGrow1 fixed the issue and we won't have to worry about it anymore.

},
NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT: 256,
EMOJI_PICKER_ITEM_HEIGHT: 32,
Expand Down
2 changes: 1 addition & 1 deletion src/components/EmojiPicker/EmojiSkinToneList.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class EmojiSkinToneList extends Component {
render() {
const selectedEmoji = getSkinToneEmojiFromIndex(this.props.preferredSkinTone);
return (
<View style={[styles.flexRow, styles.p1, styles.ph4, styles.emojiPickerContainer]}>
<View style={[styles.flexRow, styles.p3, styles.ph4, styles.emojiPickerContainer]}>
Comment thread
stitesExpensify marked this conversation as resolved.
{
!this.state.isSkinToneListVisible && (
<Pressable
Expand Down