fix: editor menu alignment

This commit is contained in:
windingwind 2024-07-20 17:45:26 +08:00
parent 12355de6cf
commit 6415a0fa6d

View File

@ -6,7 +6,6 @@ import { getNoteLink } from "../../utils/link";
import { getString } from "../../utils/locale";
import { openLinkCreator } from "../../utils/linkCreator";
import { slice } from "../../utils/str";
import { refreshTemplatesInNote } from "../template/refresh";
export async function initEditorToolbar(editor: Zotero.EditorInstance) {
const noteItem = editor._item;
@ -284,6 +283,9 @@ async function registerEditorToolbarPopup(
},
popup,
) as HTMLDivElement;
popup.style.removeProperty("left");
popup.style.right = "0px";
}
async function registerEditorToolbarElement(