fix: hide transbox
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user