mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-08 17:58:50 +01:00
This commit is contained in:
parent
10d5d4f6a1
commit
1e2b498bf4
3 changed files with 12 additions and 6 deletions
|
|
@ -49,11 +49,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
&--small {
|
||||
padding: 0 4px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
&--mid {
|
||||
padding: 2px 8px;
|
||||
}
|
||||
|
|
@ -164,6 +159,11 @@
|
|||
background-color: var(--b3-card-success-background);
|
||||
}
|
||||
|
||||
&--small {
|
||||
padding: 0 4px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: .38;
|
||||
cursor: not-allowed;
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ export const initUI = (protyle: IProtyle) => {
|
|||
setInlineStyle();
|
||||
clearTimeout(wheelTimeout);
|
||||
showMessage(`${window.siyuan.languages.fontSize} ${window.siyuan.config.editor.fontSize}px<span class="fn__space"></span>
|
||||
<button class="b3-button b3-button--small b3-button--white">${window.siyuan.languages.reset} 16px</button>`, undefined, undefined, wheelId);
|
||||
<button class="b3-button b3-button--white">${window.siyuan.languages.reset} 16px</button>`, undefined, undefined, wheelId);
|
||||
wheelTimeout = window.setTimeout(() => {
|
||||
fetchPost("/api/setting/setEditor", window.siyuan.config.editor);
|
||||
protyle.wysiwyg.element.querySelectorAll(".code-block .protyle-linenumber__rows").forEach((block: HTMLElement) => {
|
||||
|
|
|
|||
|
|
@ -4,10 +4,16 @@ import {exportLayout} from "../layout/util";
|
|||
import {hideMessage, showMessage} from "../dialog/message";
|
||||
import {setStorageVal} from "../protyle/util/compatibility";
|
||||
import {Constants} from "../constants";
|
||||
import {fetchPost} from "./fetch";
|
||||
|
||||
export const processMessage = (response: IWebSocketData) => {
|
||||
if ("msg" === response.cmd) {
|
||||
showMessage(response.msg, response.data.closeTimeout, response.code === 0 ? "info" : "error", response.data.id);
|
||||
document.querySelector("#message #addMicrosoftDefenderExclusion")?.addEventListener("click", (event) => {
|
||||
fetchPost("/api/system/addMicrosoftDefenderExclusion", {}, (response) => {
|
||||
(event.target as HTMLElement).innerHTML = '<svg class="fn__rotate" style="margin-right: 0;"><use xlink:href="#iconRefresh"></use></svg>';
|
||||
});
|
||||
}, {once: true});
|
||||
return false;
|
||||
}
|
||||
if ("cmsg" === response.cmd) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue