Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/17717

Vanessa14a05313876e
diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts
index b885213bd7..044b3a5add 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 5ff3889f29..358e868f15 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
</div>
</div>`,
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 f3a6e80e8d..9bd17e7af5 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 09838aba0b..89fe17b1b6 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: '<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");