fixed emojiboard opening
This commit is contained in:
parent
e971069595
commit
50d3631bc4
3 changed files with 8 additions and 13 deletions
|
|
@ -300,10 +300,10 @@ function ChannelViewInput({
|
|||
<div ref={rightOptionsRef} className="channel-input__option-container">
|
||||
<IconButton
|
||||
onClick={(e) => {
|
||||
const boxInfo = e.target.getBoundingClientRect();
|
||||
openEmojiBoard({
|
||||
x: '10%',
|
||||
y: 300,
|
||||
isReverse: true,
|
||||
x: boxInfo.x + (document.dir === 'rtl' ? -80 : 80),
|
||||
y: boxInfo.y - 250,
|
||||
detail: e.detail,
|
||||
}, addEmoji);
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue