fix: hide transbox

This commit is contained in:
Gabe Yuan
2024-03-18 17:52:13 +08:00
parent 1fa58cad31
commit fc50f4784a

View File

@@ -107,6 +107,7 @@ async function showFab(translator) {
const fab = await getFabWithDefault(); const fab = await getFabWithDefault();
const $action = document.createElement("div"); const $action = document.createElement("div");
$action.setAttribute("id", APP_LCNAME); $action.setAttribute("id", APP_LCNAME);
$action.style.fontSize = '0px';
document.body.parentElement.appendChild($action); document.body.parentElement.appendChild($action);
const shadowContainer = $action.attachShadow({ mode: "closed" }); const shadowContainer = $action.attachShadow({ mode: "closed" });
const emotionRoot = document.createElement("style"); const emotionRoot = document.createElement("style");
@@ -143,6 +144,7 @@ function showTransbox({
const $tranbox = document.createElement("div"); const $tranbox = document.createElement("div");
$tranbox.setAttribute("id", "kiss-transbox"); $tranbox.setAttribute("id", "kiss-transbox");
$tranbox.style.fontSize = "0px";
document.body.parentElement.appendChild($tranbox); document.body.parentElement.appendChild($tranbox);
const shadowContainer = $tranbox.attachShadow({ mode: "closed" }); const shadowContainer = $tranbox.attachShadow({ mode: "closed" });
const emotionRoot = document.createElement("style"); const emotionRoot = document.createElement("style");