Vanessa
2026-06-25 08:38:03 +08:00
parent d705815b5a
commit 14a0531387
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -814,7 +814,7 @@ export const openCardByData = async (app: App, cardsData: ICardData, cardType: T
positionId: Constants.DIALOG_OPENCARD,
content: genCardHTML({id, cardType, cardsData, isTab: false}),
width: isMobile() ? "100vw" : "80vw",
height: isMobile() ? "100vh" : "70vh",
height: isMobile() ? "100dvh" : "70vh",
destroyCallback() {
if (editor) {
editor.destroy();
+1 -1
View File
@@ -49,7 +49,7 @@ export const viewCards = (app: App, deckID: string, title: string, deckType: "Tr
</div>
</div>`,
width: isMobile() ? "100vw" : "80vw",
height: isMobile() ? "100vh" : "70vh",
height: isMobile() ? "100dvh" : "70vh",
destroyCallback() {
if (edit) {
edit.destroy();
+1 -1
View File
@@ -106,7 +106,7 @@ export const openDocHistory = (options: {
title: options.pathString,
content: contentHTML,
width: isMobile() ? "100vw" : "90vw",
height: isMobile() ? "100vh" : "80vh",
height: isMobile() ? "100dvh" : "80vh",
containerClassName: "b3-dialog__container--theme",
destroyCallback() {
historyEditor = undefined;
+1 -1
View File
@@ -757,7 +757,7 @@ const bindEvent = (app: App, element: Element, dialog?: Dialog) => {
title: liElement.querySelector(".b3-list-item__text").textContent.trim(),
content: '<div class="b3-dialog__content"><div style="border-radius: var(--b3-border-radius-b);"></div></div>',
width: isMobile() ? "100vw" : "80vw",
height: isMobile() ? "100vh" : "70vh",
height: isMobile() ? "100dvh" : "70vh",
disableAnimation: true,
});
const contentElement = dialog.element.querySelector(".b3-dialog__content");