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

@ -39,6 +39,7 @@
max-width: 60vw;
overflow: hidden;
text-overflow: ellipsis;
box-sizing: border-box;
}
&::before {

View file

@ -5,6 +5,7 @@
<!-- https://electronjs.org/docs/tutorial/security#csp-meta-tag
<meta http-equiv="Content-Security-Policy" content="script-src 'self'"/>-->
<style id="editorFontSize" type="text/css"></style>
<style id="editorAttr" type="text/css"></style>
</head>
<body class="fn__flex-column">
<div id="loading" class="b3-dialog b3-dialog--open">

View file

@ -4,6 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover">
<style id="editorFontSize" type="text/css"></style>
<style id="editorAttr" type="text/css"></style>
</head>
<body class="fn__flex-column">
<div id="loading" class="b3-dialog b3-dialog--open">

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; }`;
}
}
};