mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-25 09:46:10 +01:00
This commit is contained in:
parent
d8b7b8aaac
commit
4b33bc080a
8 changed files with 32 additions and 8 deletions
|
|
@ -245,14 +245,14 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
|
|||
}
|
||||
/// #if !MOBILE
|
||||
const openSubmenus: IMenu[] = [{
|
||||
icon: "iconRight",
|
||||
icon: "iconLayoutRight",
|
||||
label: window.siyuan.languages.insertRight,
|
||||
accelerator: "⌥Click",
|
||||
click: () => {
|
||||
openFileById({id, position: "right", action: [Constants.CB_GET_FOCUS]});
|
||||
}
|
||||
}, {
|
||||
icon: "iconDown",
|
||||
icon: "iconLayoutBottom",
|
||||
label: window.siyuan.languages.insertBottom,
|
||||
click: () => {
|
||||
openFileById({id, position: "bottom", action: [Constants.CB_GET_FOCUS]});
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
|
|||
}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
label: window.siyuan.languages.insertRight,
|
||||
icon: "iconRight",
|
||||
icon: "iconLayoutRight",
|
||||
accelerator: window.siyuan.config.keymap.editor.general.insertRight.custom + "/⌥Click",
|
||||
click() {
|
||||
fetchPost("/api/block/checkBlockFold", {id: refBlockId}, (foldResponse) => {
|
||||
|
|
@ -131,7 +131,7 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
|
|||
}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
label: window.siyuan.languages.insertBottom,
|
||||
icon: "iconDown",
|
||||
icon: "iconLayoutBottom",
|
||||
accelerator: window.siyuan.config.keymap.editor.general.insertBottom.custom + (window.siyuan.config.keymap.editor.general.insertBottom.custom ? "/" : "") + "⇧Click",
|
||||
click() {
|
||||
fetchPost("/api/block/checkBlockFold", {id: refBlockId}, (foldResponse) => {
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ const splitSubMenu = (tab: Tab) => {
|
|||
}];
|
||||
if (tab.parent.children.length > 1) {
|
||||
subMenus.push({
|
||||
icon: "iconRight",
|
||||
icon: "iconLayoutRight",
|
||||
label: window.siyuan.languages.splitMoveR,
|
||||
click: () => {
|
||||
const newWnd = tab.parent.split("lr");
|
||||
|
|
@ -142,7 +142,7 @@ const splitSubMenu = (tab: Tab) => {
|
|||
|
||||
if (tab.parent.children.length > 1) {
|
||||
subMenus.push({
|
||||
icon: "iconDown",
|
||||
icon: "iconLayoutBottom",
|
||||
label: window.siyuan.languages.splitMoveB,
|
||||
click: () => {
|
||||
const newWnd = tab.parent.split("tb");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue