🎨 export pdf

This commit is contained in:
Vanessa
2024-06-05 10:43:45 +08:00
committed by Daniel
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;
+1
View File
@@ -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');
})