Skip to content

Commit a34cf18

Browse files
authored
Update dom-utils.ts
1 parent 862a61e commit a34cf18

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/av-cliper/src/dom-utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export async function renderTxt2Img(
3434
} = {},
3535
): Promise<HTMLImageElement> {
3636
const div = createEl('pre');
37-
if (!cssText.includes('line-height')) { cssText += 'line-height: 1;'; }
3837
div.style.cssText = `margin: 0; ${cssText}; position: fixed;`;
3938
div.textContent = txt;
4039
document.body.appendChild(div);

0 commit comments

Comments
 (0)