From fc50f4784a86595989454526c54d634531e9dfee Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Mon, 18 Mar 2024 17:52:13 +0800 Subject: [PATCH] fix: hide transbox --- src/common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common.js b/src/common.js index 28d795f..84da4d0 100644 --- a/src/common.js +++ b/src/common.js @@ -107,6 +107,7 @@ async function showFab(translator) { const fab = await getFabWithDefault(); const $action = document.createElement("div"); $action.setAttribute("id", APP_LCNAME); + $action.style.fontSize = '0px'; document.body.parentElement.appendChild($action); const shadowContainer = $action.attachShadow({ mode: "closed" }); const emotionRoot = document.createElement("style"); @@ -143,6 +144,7 @@ function showTransbox({ const $tranbox = document.createElement("div"); $tranbox.setAttribute("id", "kiss-transbox"); + $tranbox.style.fontSize = "0px"; document.body.parentElement.appendChild($tranbox); const shadowContainer = $tranbox.attachShadow({ mode: "closed" }); const emotionRoot = document.createElement("style");