Skip to content

Commit

Permalink
Merge pull request #107 from etherfun/dev_1
Browse files Browse the repository at this point in the history
Fix info menu invisible in Widescreen mode
  • Loading branch information
hanydd authored Dec 9, 2024
2 parents 1484935 + d5691d4 commit 9e104b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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("", "*");

Expand All @@ -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);
}

Expand Down

0 comments on commit 9e104b5

Please sign in to comment.