mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 21:22:34 +01:00
This commit is contained in:
parent
b434b779bb
commit
edbe4da57e
20 changed files with 10 additions and 95 deletions
|
|
@ -9,8 +9,6 @@ const moveMenuItem = (label: string, target: Element) => {
|
|||
window.siyuan.layout.leftDock.add(label.endsWith("Top") ? 0 : 1, target);
|
||||
} else if (label.indexOf("moveToRight") > -1) {
|
||||
window.siyuan.layout.rightDock.add(label.endsWith("Top") ? 0 : 1, target);
|
||||
} else if (label.indexOf("moveToTop") > -1) {
|
||||
window.siyuan.layout.topDock.add(label.endsWith("Left") ? 0 : 1, target);
|
||||
} else if (label.indexOf("moveToBottom") > -1) {
|
||||
window.siyuan.layout.bottomDock.add(label.endsWith("Left") ? 0 : 1, target);
|
||||
}
|
||||
|
|
@ -24,8 +22,6 @@ export const initDockMenu = (target: Element) => {
|
|||
window.siyuan.menus.menu.append(moveMenuItem("moveToLeftBottom", target).element);
|
||||
window.siyuan.menus.menu.append(moveMenuItem("moveToRightTop", target).element);
|
||||
window.siyuan.menus.menu.append(moveMenuItem("moveToRightBottom", target).element);
|
||||
window.siyuan.menus.menu.append(moveMenuItem("moveToTopLeft", target).element);
|
||||
window.siyuan.menus.menu.append(moveMenuItem("moveToTopRight", target).element);
|
||||
window.siyuan.menus.menu.append(moveMenuItem("moveToBottomLeft", target).element);
|
||||
window.siyuan.menus.menu.append(moveMenuItem("moveToBottomRight", target).element);
|
||||
return window.siyuan.menus.menu;
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ export const workspaceMenu = (rect: DOMRect) => {
|
|||
dockMenu.push(togglePinDock(window.siyuan.layout.leftDock, "iconLeftTop"));
|
||||
dockMenu.push(togglePinDock(window.siyuan.layout.rightDock, "iconRightTop"));
|
||||
dockMenu.push(togglePinDock(window.siyuan.layout.bottomDock, "iconBottomLeft"));
|
||||
dockMenu.push(togglePinDock(window.siyuan.layout.topDock, "iconTopLeft"));
|
||||
}
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
label: window.siyuan.languages.panels,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue