From 7814d5d0c9d1527bf910db138e291ed8c8babfbd Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 27 Jul 2023 21:32:23 +0300 Subject: [PATCH] fix inline emoji picker overflowing the screen --- files/assets/js/emoji_modal.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index 919da6068b..1b4808be2c 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -438,6 +438,8 @@ function update_speed_emoji_modal(event) { const box_coords = update_ghost_div_textarea(event.target); + box_coords.x = Math.min(box_coords.x, screen_width - 150) + let text = event.target.value; // Unused, but left incase anyone wants to use this more efficient method for emojos