🎨 export pdf

This commit is contained in:
Vanessa 2024-06-05 10:43:45 +08:00 committed by Daniel
parent e777e178d2
commit fe0445420f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 2 additions and 1 deletions

View file

@ -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;

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');
})