mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
8a587c23e2
commit
b2c78cbceb
4 changed files with 9 additions and 0 deletions
|
|
@ -39,6 +39,7 @@
|
||||||
max-width: 60vw;
|
max-width: 60vw;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
<!-- https://electronjs.org/docs/tutorial/security#csp-meta-tag
|
<!-- https://electronjs.org/docs/tutorial/security#csp-meta-tag
|
||||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self'"/>-->
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self'"/>-->
|
||||||
<style id="editorFontSize" type="text/css"></style>
|
<style id="editorFontSize" type="text/css"></style>
|
||||||
|
<style id="editorAttr" type="text/css"></style>
|
||||||
</head>
|
</head>
|
||||||
<body class="fn__flex-column">
|
<body class="fn__flex-column">
|
||||||
<div id="loading" class="b3-dialog b3-dialog--open">
|
<div id="loading" class="b3-dialog b3-dialog--open">
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover">
|
<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="editorFontSize" type="text/css"></style>
|
||||||
|
<style id="editorAttr" type="text/css"></style>
|
||||||
</head>
|
</head>
|
||||||
<body class="fn__flex-column">
|
<body class="fn__flex-column">
|
||||||
<div id="loading" class="b3-dialog b3-dialog--open">
|
<div id="loading" class="b3-dialog b3-dialog--open">
|
||||||
|
|
|
||||||
|
|
@ -85,4 +85,10 @@ export const setPadding = (protyle: IProtyle) => {
|
||||||
lineNumberRender(block);
|
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; }`;
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue