mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user