Skip to content

Commit 97f87d7

Browse files
committed
(fix) main emoji picker position on mobile
1 parent 25603f1 commit 97f87d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ChatWindow/EmojiPicker.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ export default {
9090
},
9191
setEmojiPickerPosition(clientY, innerWidth, innerHeight) {
9292
setTimeout(() => {
93-
if (!this.roomFooterRef) return
93+
if (!this.roomFooterRef) {
94+
if (innerWidth < 500) this.emojiPickerRight = '0px'
95+
return
96+
}
9497
9598
if (innerHeight < 700) this.emojiPickerHeight = innerHeight / 2
9699
const roomFooterTop = this.roomFooterRef.getBoundingClientRect().top

0 commit comments

Comments
 (0)