From 6c8b908eb85eb51d50bbd2d8b467166754a8bf52 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 16 Nov 2022 19:57:18 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6593 2 --- app/src/protyle/export/util.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/src/protyle/export/util.ts b/app/src/protyle/export/util.ts index 975611337..1efb1aa31 100644 --- a/app/src/protyle/export/util.ts +++ b/app/src/protyle/export/util.ts @@ -57,6 +57,16 @@ export const exportImage = (id: string) => { item.style.zoom = item.parentElement.clientWidth / item.clientWidth; } }); + previewElement.querySelectorAll(".li > .protyle-action > svg").forEach(item => { + const id = item.firstElementChild.getAttribute("xlink:href") + const symbolElements = document.querySelectorAll(id) + let viewBox = "0 0 32 32"; + if (id === "#iconDot") { + viewBox = "0 0 20 20"; + } + item.setAttribute("viewBox", viewBox); + item.innerHTML = symbolElements[symbolElements.length - 1].innerHTML; + }); const btnsElement = exportDialog.element.querySelectorAll(".b3-button"); btnsElement[0].addEventListener("click", () => { exportDialog.destroy();