feat: mc popup on update, improved styles

This commit is contained in:
SethBurkart123
2025-08-15 10:37:33 +10:00
parent adb3beb2b1
commit f3048d0cae
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -36,6 +36,7 @@ import IconFamily from "@/resources/fonts/IconFamily.woff";
// Stylesheets // Stylesheets
import iframeCSS from "@/css/iframe.scss?raw"; import iframeCSS from "@/css/iframe.scss?raw";
import { OpenMinecraftServerPopup } from "@/seqta/utils/AboutMinecraftServer";
function SetDisplayNone(ElementName: string) { function SetDisplayNone(ElementName: string) {
return `li[data-key=${ElementName}]{display:var(--menuHidden) !important; transition: 1s;}`; return `li[data-key=${ElementName}]{display:var(--menuHidden) !important; transition: 1s;}`;
@@ -95,7 +96,8 @@ export async function finishLoad() {
} }
if (settingsState.justupdated && !document.getElementById("whatsnewbk")) { if (settingsState.justupdated && !document.getElementById("whatsnewbk")) {
OpenWhatsNewPopup(); OpenMinecraftServerPopup();
//OpenWhatsNewPopup();
} }
} }
+2
View File
@@ -47,6 +47,8 @@ export function OpenMinecraftServerPopup() {
imagecont.classList.add("whatsnewImgContainer"); imagecont.classList.add("whatsnewImgContainer");
let video = document.createElement("video"); let video = document.createElement("video");
video.style.aspectRatio = "16/9";
video.style.background = "black";
let source = document.createElement("source"); let source = document.createElement("source");
source.setAttribute( source.setAttribute(