diff --git a/src/content.ts b/src/content.ts index 20369e3e..e27a3e15 100644 --- a/src/content.ts +++ b/src/content.ts @@ -2199,6 +2199,7 @@ function openInfoMenu() { frame.width = "374"; frame.height = "500"; frame.style.borderRadius = "6px"; + frame.style.margin = "20px auto 0px"; frame.addEventListener("load", async () => { frame.contentWindow.postMessage("", "*"); @@ -2218,7 +2219,7 @@ function openInfoMenu() { popup.appendChild(frame); // insert into the avatar container to prevent the popup from being cut off - const container = document.querySelector(".up-panel-container") as HTMLElement; + const container = document.querySelector("#danmukuBox") as HTMLElement; container.appendChild(popup); }