add some rules

This commit is contained in:
Gabe Yuan
2023-08-10 17:03:37 +08:00
parent 0616b4f221
commit 5cb9e4b34b
2 changed files with 60 additions and 1 deletions

View File

@@ -133,7 +133,10 @@ export class Translator {
// console.log("---> ", q);
const span = document.createElement(APP_LCNAME);
span.style.visibility = "visible";
el.appendChild(span);
el.style.cssText += "-webkit-line-clamp: unset; max-height: none; height: auto;";
el.parentElement.style.cssText += "-webkit-line-clamp: unset; max-height: none; height: auto;";
const root = createRoot(span);
root.render(