Przeglądaj źródła

Merge remote-tracking branch 'origin/dev' into dev

Vanessa 1 rok temu
rodzic
commit
761cde0af5

+ 1 - 1
app/src/assets/scss/component/_typography.scss

@@ -255,7 +255,7 @@
     display: inline-block !important;
     display: inline-block !important;
     position: absolute !important;
     position: absolute !important;
     width: 1px !important;
     width: 1px !important;
-    right: 7px !important;
+    right: 8px !important;
     outline: 0 !important;
     outline: 0 !important;
     background: 0 0 !important;
     background: 0 0 !important;
     text-decoration: initial !important;
     text-decoration: initial !important;

+ 1 - 0
app/src/protyle/export/index.ts

@@ -315,6 +315,7 @@ const renderPDF = async (id: string) => {
         Protyle.highlightRender(previewElement, "${servePath}/stage/protyle");
         Protyle.highlightRender(previewElement, "${servePath}/stage/protyle");
         previewElement.querySelectorAll('[data-type="NodeMathBlock"]').forEach((item) => {
         previewElement.querySelectorAll('[data-type="NodeMathBlock"]').forEach((item) => {
             item.style.width = "";
             item.style.width = "";
+            item.style.boxSizing = "border-box";
             item.style.width = Math.min(item.clientWidth, width) + "px";
             item.style.width = Math.min(item.clientWidth, width) + "px";
             item.removeAttribute('data-render');
             item.removeAttribute('data-render');
         })
         })