mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 15:04:07 +01:00
This commit is contained in:
parent
34fd791e0e
commit
c9b4f072d4
2 changed files with 5 additions and 2 deletions
|
|
@ -2176,6 +2176,7 @@ export class Gutter {
|
|||
}
|
||||
|
||||
private genAlign(nodeElements: Element[], protyle: IProtyle) {
|
||||
const disabledRTL = nodeElements.some(e => e.classList.contains("code-block") || ["NodeMathBlock"].includes(e.getAttribute("data-type")));
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
id: "layout",
|
||||
label: window.siyuan.languages.layout,
|
||||
|
|
@ -2243,6 +2244,7 @@ export class Gutter {
|
|||
}, {
|
||||
id: "ltr",
|
||||
icon: "iconLtr",
|
||||
ignore: disabledRTL,
|
||||
label: window.siyuan.languages.ltr,
|
||||
accelerator: window.siyuan.config.keymap.editor.general.ltr.custom,
|
||||
click: () => {
|
||||
|
|
@ -2253,6 +2255,7 @@ export class Gutter {
|
|||
}, {
|
||||
id: "rtl",
|
||||
icon: "iconRtl",
|
||||
ignore: disabledRTL,
|
||||
label: window.siyuan.languages.rtl,
|
||||
accelerator: window.siyuan.config.keymap.editor.general.rtl.custom,
|
||||
click: () => {
|
||||
|
|
@ -2264,6 +2267,7 @@ export class Gutter {
|
|||
}
|
||||
}, {
|
||||
id: "separator_2",
|
||||
ignore: disabledRTL,
|
||||
type: "separator"
|
||||
}, {
|
||||
id: "clearFontStyle",
|
||||
|
|
|
|||
|
|
@ -292,10 +292,9 @@ export const setInlineStyle = async (set = true, servePath = "../../../") => {
|
|||
if (window.siyuan.config.editor.rtl) {
|
||||
style += `\n.protyle-title__input,
|
||||
.protyle-wysiwyg .p,
|
||||
.protyle-wysiwyg .code-block .hljs,
|
||||
.protyle-wysiwyg .table,
|
||||
.protyle-wysiwyg .render-node protyle-html,
|
||||
.protyle-wysiwyg .render-node > div[spin="1"],
|
||||
.protyle-wysiwyg .render-node:not([data-type="NodeMathBlock"]) > div[spin="1"],
|
||||
.protyle-wysiwyg [data-type="NodeHeading"] {direction: rtl}
|
||||
.protyle-wysiwyg [data-node-id].li > .protyle-action {
|
||||
right: 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue