Vanessa 2025-10-31 10:48:09 +08:00
parent f2efa61cf0
commit b169038f22

View file

@ -276,12 +276,11 @@ export const setInlineStyle = async (set = true, servePath = "../../../") => {
size-adjust: 92%; size-adjust: 92%;
}`; }`;
} }
style += `\n:root{ --b3-font-size-editor: ${window.siyuan.config.editor.fontSize}px } style += `\n:root { --b3-font-size-editor: ${window.siyuan.config.editor.fontSize}px }
.b3-typography code:not(.hljs), .protyle-wysiwyg span[data-type~=code] { font-variant-ligatures: ${window.siyuan.config.editor.codeLigatures ? "normal" : "none"} } .b3-typography code:not(.hljs), .protyle-wysiwyg span[data-type~=code] { font-variant-ligatures: ${window.siyuan.config.editor.codeLigatures ? "normal" : "none"} }
${window.siyuan.config.editor.justify ? ".protyle-wysiwyg [data-node-id] { text-align: justify }" : ""}`; ${window.siyuan.config.editor.justify ? ".protyle-wysiwyg [data-node-id] { text-align: justify }" : ""}`;
if (window.siyuan.config.editor.rtl) { if (window.siyuan.config.editor.rtl) {
style += ` style += `.protyle-title__input,
.protyle-title__input,
.protyle-wysiwyg .p, .protyle-wysiwyg .p,
.protyle-wysiwyg .code-block .hljs, .protyle-wysiwyg .code-block .hljs,
.protyle-wysiwyg .table, .protyle-wysiwyg .table,