mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 04:05:16 +01:00
This commit is contained in:
parent
616fef6650
commit
512d15425a
6 changed files with 13 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ import {Menu} from "../plugin/Menu";
|
|||
import {fetchPost} from "../util/fetch";
|
||||
import {needSubscribe} from "../util/needSubscribe";
|
||||
import * as dayjs from "dayjs";
|
||||
import {commandPanel} from "../plugin/commandPanel";
|
||||
|
||||
export const updateEditModeElement = () => {
|
||||
const target = document.querySelector("#barReadonly");
|
||||
|
|
@ -377,6 +378,13 @@ const openPlugin = (app: App, target: Element) => {
|
|||
dialogSetting.element.querySelector('.b3-tab-bar [data-name="bazaar"]').dispatchEvent(new CustomEvent("click"));
|
||||
}
|
||||
});
|
||||
menu.addItem({
|
||||
icon: "iconLayoutBottom",
|
||||
label: window.siyuan.languages.commandPanel,
|
||||
click() {
|
||||
commandPanel();
|
||||
}
|
||||
});
|
||||
let rect = target.getBoundingClientRect();
|
||||
if (rect.width === 0) {
|
||||
rect = document.querySelector("#barMore").getBoundingClientRect();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue