mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
converted relation map buttons to floating pattern
This commit is contained in:
@@ -18,7 +18,7 @@ export default class ClosePaneButton extends ButtonWidget {
|
||||
// pane (which is being removed)
|
||||
e.stopPropagation();
|
||||
|
||||
widget.triggerCommand("closeThisNoteSplit", { ntxId: widget.getNtxId() });
|
||||
widget.triggerCommand("closeThisNoteSplit", { ntxId: widget.getClosestNtxId() });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@ export default class CreatePaneButton extends ButtonWidget {
|
||||
this.icon("bx-dock-right")
|
||||
.title("Create new split")
|
||||
.titlePlacement("bottom")
|
||||
.onClick(widget => widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getNtxId() }));
|
||||
.onClick(widget => widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getClosestNtxId() }));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user