From 7dce2b0bdcd9727fb5d3efeaf2da0cfdbfd6f7b7 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Sun, 8 Sep 2024 10:39:37 +0200 Subject: [PATCH] fix: export to pdf image size fix: #1103 fix: renderNoteHTML image height --- src/utils/note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/note.ts b/src/utils/note.ts index 421e3f8..4ca128e 100644 --- a/src/utils/note.ts +++ b/src/utils/note.ts @@ -248,7 +248,7 @@ async function renderNoteHTML( node.style.width = `${node.getAttribute("width")}px`; } if (node.hasAttribute("height")) { - node.style.width = `${node.getAttribute("height")}px`; + node.style.height = `${node.getAttribute("height")}px`; } }); } catch (e) {