TF-3944 Remove line-height = 1px when drag & drop

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-08-21 14:03:40 +07:00
committed by Dat H. Pham
parent 346b115169
commit ca1bd0dfe0
2 changed files with 11 additions and 11 deletions
+7 -7
View File
@@ -17,14 +17,14 @@ class HtmlUtils {
static final random = Random();
static final htmlUnescape = HtmlUnescape();
static const lineHeight100Percent = (
static const removeLineHeight1px = (
script: '''
document.querySelectorAll("*")
.forEach((element) => {
if (element.style.lineHeight !== "normal")
element.style.lineHeight = "100%";
});''',
name: 'lineHeight100Percent');
document.querySelectorAll('[style*="line-height"]').forEach(el => {
if (el.style.lineHeight === "1px") {
el.style.removeProperty("line-height");
}
});''',
name: 'removeLineHeight1px');
static const registerDropListener = (
script: '''