diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2019-06-06 19:30:14 +0900 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-22 01:28:39 -0600 |
commit | e3132889d23d43936690b7aeb322f131c7350264 (patch) | |
tree | 170fcd56d77fa529a52120b61fbf23019f08e650 | |
parent | c5773e258aada257e3a172f49f69e489704afba3 (diff) |
[Glitch] Fix emoji picker being always displayed
Port c402c291f4991e2b021d8c13b557e6a8f650dcf3 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
-rw-r--r-- | app/javascript/flavours/glitch/features/compose/components/compose_form.js | 2 | ||||
-rw-r--r-- | app/javascript/flavours/glitch/styles/components/composer.scss | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/compose_form.js b/app/javascript/flavours/glitch/features/compose/components/compose_form.js index 8957def09..de89b7266 100644 --- a/app/javascript/flavours/glitch/features/compose/components/compose_form.js +++ b/app/javascript/flavours/glitch/features/compose/components/compose_form.js @@ -348,7 +348,7 @@ class ComposeForm extends ImmutablePureComponent { /> </div> - <div className='emoji-picker-wrapper'> + <div className={`emoji-picker-wrapper ${this.props.showSearch ? 'emoji-picker-wrapper--hidden' : ''}`}> <EmojiPicker onPickEmoji={handleEmoji} /> </div> diff --git a/app/javascript/flavours/glitch/styles/components/composer.scss b/app/javascript/flavours/glitch/styles/components/composer.scss index 8ddb017a1..dc1416be1 100644 --- a/app/javascript/flavours/glitch/styles/components/composer.scss +++ b/app/javascript/flavours/glitch/styles/components/composer.scss @@ -291,12 +291,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 { display: block; position: absolute; |