mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-27 17:34:06 +01:00
Improve /menu (#12547)
* / 菜单 * 优先显示快捷键,其次显示键盘输入 * heading * 空格 * html * html * 更新 index.ts * b3-menu__accelerator 嵌套了
This commit is contained in:
parent
a258db3d72
commit
08858050e3
4 changed files with 77 additions and 17 deletions
|
|
@ -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: () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue