From ebcfb4b426cfa0420d2686225d0e88a3ed35eb02 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 1 Apr 2023 21:58:02 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/7850 --- app/src/protyle/export/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index 6dc7b3310..2d426db4c 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -107,6 +107,7 @@ const renderPDF = (id: string) => { overflow-y: auto; bottom: 0; overflow-x: hidden; + z-index: 1; } #preview { @@ -232,7 +233,7 @@ const renderPDF = (id: string) => { -
+
@@ -426,7 +427,9 @@ const renderPDF = (id: string) => { }; actionElement.querySelector("#scale").addEventListener("input", () => { - actionElement.querySelector("#scaleTip").innerText = actionElement.querySelector("#scale").value; + const scale = actionElement.querySelector("#scale").value; + actionElement.querySelector("#scaleTip").innerText = scale; + previewElement.style.zoom = scale; }) actionElement.querySelector("#pageSize").addEventListener('change', () => { fixBlockWidth(); @@ -483,6 +486,7 @@ const renderPDF = (id: string) => { rootTitle: response.data.name, }) previewElement.classList.add("exporting"); + previewElement.style.zoom = ""; previewElement.style.paddingTop = "6px"; previewElement.style.paddingBottom = "0"; fixBlockWidth();