fixed emojiboard opening

This commit is contained in:
unknown
2021-08-22 18:15:20 +05:30
parent e971069595
commit 50d3631bc4
3 changed files with 8 additions and 13 deletions

View File

@@ -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);
}}