Improve /menu (#12547)

* / 菜单

* 优先显示快捷键,其次显示键盘输入

* heading

* 空格

* html

* html

* 更新 index.ts

* b3-menu__accelerator 嵌套了
This commit is contained in:
Jeffrey Chen 2024-09-23 08:43:49 +08:00 committed by GitHub
parent a258db3d72
commit 08858050e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 77 additions and 17 deletions

View file

@ -1454,9 +1454,9 @@ export class Gutter {
submenu: iframeMenu(protyle, nodeElement)
}).element);
} else if (type === "NodeHTMLBlock" && !protyle.disabled) {
window.siyuan.menus.menu.append(new MenuItem({id: "separator_HTML", type: "separator"}).element);
window.siyuan.menus.menu.append(new MenuItem({id: "separator_html", type: "separator"}).element);
window.siyuan.menus.menu.append(new MenuItem({
id: "HTML",
id: "html",
icon: "iconHTML5",
label: "HTML",
click() {
@ -1989,7 +1989,7 @@ export class Gutter {
}];
["25%", "33%", "50%", "67%", "75%", "100%"].forEach((item) => {
styles.push({
id: "width" + item,
id: "width_" + item,
iconHTML: "",
label: item,
click: () => {
@ -2079,7 +2079,7 @@ export class Gutter {
}];
["25%", "33%", "50%", "67%", "75%", "100%"].forEach((item) => {
styles.push({
id: "height" + item,
id: "height_" + item,
iconHTML: "",
label: item,
click: () => {