mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-27 10:46:09 +01:00
This commit is contained in:
parent
a7e4eed843
commit
278b438b70
1 changed files with 2 additions and 0 deletions
|
|
@ -264,6 +264,7 @@ const renderPDF = (id: string) => {
|
|||
width = isLandscape ? 1632 : 1056
|
||||
break;
|
||||
}
|
||||
width = width / parseFloat(document.querySelector("#scale").value);
|
||||
previewElement.style.width = width + "px";
|
||||
width = width - parseFloat(previewElement.style.paddingLeft) * 96 * 2;
|
||||
// 为保持代码块宽度一致,全部都进行宽度设定 https://github.com/siyuan-note/siyuan/issues/7692
|
||||
|
|
@ -430,6 +431,7 @@ const renderPDF = (id: string) => {
|
|||
const scale = actionElement.querySelector("#scale").value;
|
||||
actionElement.querySelector("#scaleTip").innerText = scale;
|
||||
previewElement.style.zoom = scale;
|
||||
fixBlockWidth();
|
||||
})
|
||||
actionElement.querySelector("#pageSize").addEventListener('change', () => {
|
||||
fixBlockWidth();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue