This commit is contained in:
Vanessa 2022-07-03 17:18:48 +08:00
parent 8a587c23e2
commit b2c78cbceb
4 changed files with 9 additions and 0 deletions

View file

@ -85,4 +85,10 @@ export const setPadding = (protyle: IProtyle) => {
lineNumberRender(block);
});
}
if (window.siyuan.config.editor.displayBookmarkIcon) {
const editorAttrElement = document.getElementById("editorAttr")
if (editorAttrElement) {
editorAttrElement.innerHTML = `.protyle-wysiwyg--attr .b3-tooltips:after { max-width: ${protyle.wysiwyg.element.clientWidth - min16 - min24}px; }`;
}
}
};