From 224de108e0039632c21652bd056d4120a6c6a7fb Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 23 Feb 2023 14:40:13 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=97=AA=E5=8D=A1=E8=BF=87=E7=AA=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/card/openCard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts index 2978db4e4..90686eec0 100644 --- a/app/src/card/openCard.ts +++ b/app/src/card/openCard.ts @@ -84,6 +84,7 @@ export const openCardByData = (cardsData: ICard[], html = "") => { height: isMobile() ? "80vh" : "70vh", }); (dialog.element.querySelector(".b3-dialog__scrim") as HTMLElement).style.backgroundColor = "var(--b3-theme-background)"; + (dialog.element.querySelector(".b3-dialog__container") as HTMLElement).style.maxWidth = "1024px"; const editor = new Protyle(dialog.element.querySelector("[data-type='render']") as HTMLElement, { blockId: "", action: [Constants.CB_GET_ALL], @@ -108,7 +109,6 @@ export const openCardByData = (cardsData: ICard[], html = "") => { }); } (dialog.element.firstElementChild as HTMLElement).style.zIndex = "200"; - (dialog.element.querySelector(".b3-dialog__container") as HTMLElement).style.maxWidth = "1024px"; dialog.element.setAttribute("data-key", window.siyuan.config.keymap.general.riffCard.custom); const countElement = dialog.element.querySelector('[data-type="count"]'); const actionElements = dialog.element.querySelectorAll(".b3-dialog__cardaction");