mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
🎨 export pdf
This commit is contained in:
parent
e777e178d2
commit
fe0445420f
2 changed files with 2 additions and 1 deletions
|
|
@ -255,7 +255,7 @@
|
|||
display: inline-block !important;
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
right: 7px !important;
|
||||
right: 8px !important;
|
||||
outline: 0 !important;
|
||||
background: 0 0 !important;
|
||||
text-decoration: initial !important;
|
||||
|
|
|
|||
|
|
@ -315,6 +315,7 @@ const renderPDF = async (id: string) => {
|
|||
Protyle.highlightRender(previewElement, "${servePath}/stage/protyle");
|
||||
previewElement.querySelectorAll('[data-type="NodeMathBlock"]').forEach((item) => {
|
||||
item.style.width = "";
|
||||
item.style.boxSizing = "border-box";
|
||||
item.style.width = Math.min(item.clientWidth, width) + "px";
|
||||
item.removeAttribute('data-render');
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue