diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index 04b1a0285..c34aa124e 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -207,6 +207,7 @@ export const fileAnnotationRefMenu = (protyle: IProtyle, refElement: HTMLElement
`, bind(menuItemElement) { + menuItemElement.style.maxWidth = "none"; anchorElement = menuItemElement.querySelectorAll(".b3-text-field")[1] as HTMLInputElement; anchorElement.value = refElement.textContent; const inputEvent = () => { @@ -880,6 +881,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme `, bind(element) { + element.style.maxWidth = "none"; const textElements = element.querySelectorAll("textarea"); textElements[0].addEventListener("input", (event: InputEvent) => { if (event.isComposing) { @@ -968,6 +970,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme type: "readonly", label: ``, bind(element) { + element.style.maxWidth = "none"; fetchPost("/api/asset/getImageOCRText", { path: imgElement.getAttribute("src"), force: false @@ -1103,6 +1106,7 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText `, bind(element) { + element.style.maxWidth = "none"; const inputElements = element.querySelectorAll("textarea"); inputElements[0].value = Lute.UnEscapeHTMLStr(linkAddress) || ""; inputElements[0].addEventListener("keydown", (event) => { @@ -1419,6 +1423,7 @@ export const iframeMenu = (protyle: IProtyle, nodeElement: Element) => { type: "readonly", label: ``, bind(element) { + element.style.maxWidth = "none"; element.querySelector("textarea").addEventListener("change", (event) => { const value = (event.target as HTMLTextAreaElement).value.replace(/\n|\r\n|\r|\u2028|\u2029/g, ""); const biliMatch = value.match(/(?:www\.|\/\/)bilibili\.com\/video\/(\w+)/); @@ -1484,6 +1489,7 @@ export const videoMenu = (protyle: IProtyle, nodeElement: Element, type: string) type: "readonly", label: ``, bind(element) { + element.style.maxWidth = "none"; element.querySelector("textarea").addEventListener("change", (event) => { videoElement.setAttribute("src", (event.target as HTMLTextAreaElement).value.replace(/\n|\r\n|\r|\u2028|\u2029/g, "")); updateTransaction(protyle, id, nodeElement.outerHTML, html);