diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts index b885213bd..044b3a5ad 100644 --- a/app/src/card/openCard.ts +++ b/app/src/card/openCard.ts @@ -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(); diff --git a/app/src/card/viewCards.ts b/app/src/card/viewCards.ts index 5ff3889f2..358e868f1 100644 --- a/app/src/card/viewCards.ts +++ b/app/src/card/viewCards.ts @@ -49,7 +49,7 @@ export const viewCards = (app: App, deckID: string, title: string, deckType: "Tr `, width: isMobile() ? "100vw" : "80vw", - height: isMobile() ? "100vh" : "70vh", + height: isMobile() ? "100dvh" : "70vh", destroyCallback() { if (edit) { edit.destroy(); diff --git a/app/src/history/doc.ts b/app/src/history/doc.ts index f3a6e80e8..9bd17e7af 100644 --- a/app/src/history/doc.ts +++ b/app/src/history/doc.ts @@ -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; diff --git a/app/src/history/history.ts b/app/src/history/history.ts index 09838aba0..89fe17b1b 100644 --- a/app/src/history/history.ts +++ b/app/src/history/history.ts @@ -757,7 +757,7 @@ const bindEvent = (app: App, element: Element, dialog?: Dialog) => { title: liElement.querySelector(".b3-list-item__text").textContent.trim(), content: '
', width: isMobile() ? "100vw" : "80vw", - height: isMobile() ? "100vh" : "70vh", + height: isMobile() ? "100dvh" : "70vh", disableAnimation: true, }); const contentElement = dialog.element.querySelector(".b3-dialog__content");