Skip to content

Commit

Permalink
Fix emoji picker being always displayed (mastodon#10979)
Browse files Browse the repository at this point in the history
* Fix emoji picker being always displayed

* Remove duplicate content with other pull-requests
  • Loading branch information
noellabo authored and hiyuki2578 committed Oct 2, 2019
1 parent 0a19c54 commit 33f5eb5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class ComposeForm extends ImmutablePureComponent {
/>
</div>

<div className='emoji-picker-wrapper'>
<div className={`emoji-picker-wrapper ${this.props.showSearch ? 'emoji-picker-wrapper--hidden' : ''}`}>
<EmojiPickerDropdown onPickEmoji={this.handleEmojiPick} />
</div>

Expand Down
10 changes: 9 additions & 1 deletion app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,20 @@
}
}

.emoji-picker-wrapper,
.autosuggest-textarea__suggestions-wrapper {
position: relative;
height: 0;
}

.emoji-picker-wrapper {
position: relative;
height: 0;

&.emoji-picker-wrapper--hidden {
display: none;
}
}

.autosuggest-textarea__suggestions {
box-sizing: border-box;
display: none;
Expand Down

0 comments on commit 33f5eb5

Please sign in to comment.