This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix emoji picker being always displayed (
#10979
)
* Fix emoji picker being always displayed * Remove duplicate content with other pull-requests
pull/4/head
Takeshi Umeda
4 years ago
committed by
Eugen Rochko
parent
8f3c32e29c
commit
c402c291f4
2 changed files
with
10 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/javascript/mastodon/features/compose/components/compose_form.js
+9
-1
app/javascript/styles/mastodon/components.scss
+ 1
- 1
app/javascript/mastodon/features/compose/components/compose_form.js
View File
@ -208,7 +208,7 @@ class ComposeForm extends ImmutablePureComponent {
/
>
<
/
d
i
v
>
<
div
className
=
'emoji-picker-wrapper'
>
<
div
className
=
{
`
emoji-picker-wrapper
${
this
.
props
.
showSearch
?
'emoji-picker-wrapper
--hidden
'
:
''
}
`
}
>
<
EmojiPickerDropdown
onPickEmoji
=
{
this
.
handleEmojiPick
}
/
>
<
/
d
i
v
>
+ 9
- 1
app/javascript/styles/mastodon/components.scss
View File
@ -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
;
Write
Preview
Loading…
Cancel
Save