Vanessa 2023-06-24 17:50:43 +08:00
parent 616fef6650
commit 512d15425a
6 changed files with 13 additions and 0 deletions

View file

@ -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();