emoji button and a lot of bug fixes
This commit is contained in:
parent
a33755f6ae
commit
fbd7c38f44
6 changed files with 182 additions and 45 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue