This commit is contained in:
Vanessa 2022-06-18 22:47:53 +08:00
parent c14fc344c6
commit 4226541e9e
9 changed files with 78 additions and 37 deletions

View file

@ -42,7 +42,7 @@ export class Hint {
this.element = document.createElement("div");
this.element.setAttribute("data-close", "false");
// height 402 根据 .emojis max-height+8 得来
this.element.setAttribute("style", `overflow:auto;z-index:200;max-height:402px;width:${Math.max(protyle.element.clientWidth / 2, 320)}px;box-sizing: border-box;`);
this.element.setAttribute("style", `overflow:auto;max-height:402px;width:${Math.max(protyle.element.clientWidth / 2, 320)}px;box-sizing: border-box;`);
this.element.className = "b3-menu b3-list b3-list--background fn__none";
this.element.addEventListener("click", (event) => {
const eventTarget = event.target as HTMLElement;