emoji button and a lot of bug fixes

This commit is contained in:
MathMan05 2025-04-05 20:55:18 -05:00
parent a33755f6ae
commit fbd7c38f44
6 changed files with 182 additions and 45 deletions

View file

@ -134,8 +134,16 @@ class Emoji {
});
const menu = document.createElement("div");
menu.classList.add("flexttb", "emojiPicker");
menu.style.top = y + "px";
menu.style.left = x + "px";
if (y > 0) {
menu.style.top = y + "px";
} else {
menu.style.bottom = y * -1 + "px";
}
if (x > 0) {
menu.style.left = x + "px";
} else {
menu.style.right = x * -1 + "px";
}
const topBar = document.createElement("div");
topBar.classList.add("flexltr", "emojiHeading");