From 7a1e38b2346604e83bab2e6a6c075338495daace Mon Sep 17 00:00:00 2001 From: hanyd Date: Mon, 9 Dec 2024 21:59:11 +0800 Subject: [PATCH] put in page popup at top of danmuku box --- src/content.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content.ts b/src/content.ts index e27a3e15..bac12af0 100644 --- a/src/content.ts +++ b/src/content.ts @@ -2199,7 +2199,7 @@ function openInfoMenu() { frame.width = "374"; frame.height = "500"; frame.style.borderRadius = "6px"; - frame.style.margin = "20px auto 0px"; + frame.style.margin = "0px auto 20px"; frame.addEventListener("load", async () => { frame.contentWindow.postMessage("", "*"); @@ -2220,7 +2220,7 @@ function openInfoMenu() { // insert into the avatar container to prevent the popup from being cut off const container = document.querySelector("#danmukuBox") as HTMLElement; - container.appendChild(popup); + container.prepend(popup); } function closeInfoMenu() {