feat: image full screen overlay for popoups

This commit is contained in:
2026-04-12 20:06:03 +09:30
parent 1d9b8f3747
commit 89f50f774f
5 changed files with 253 additions and 0 deletions
@@ -2,6 +2,7 @@ import stringToHTML from "../stringToHTML";
import browser from "webextension-polyfill";
import kofi from "@/resources/kofi.png?base64";
import { openPopup } from "./PopupManager";
import { attachPopupMediaFullscreen } from "./attachPopupMediaFullscreen";
export function OpenWhatsNewPopup(onDismissed?: () => void) {
const header = stringToHTML(
@@ -28,6 +29,7 @@ export function OpenWhatsNewPopup(onDismissed?: () => void) {
video.appendChild(source);
video.classList.add("whatsnewImg");
imageContainer.appendChild(video);
attachPopupMediaFullscreen(video);
const text = stringToHTML(/* html */ `
<div class="whatsnewTextContainer" style="height: 50%;overflow-y: auto;">