mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
b378829fe9
commit
f5ff8f74c2
9 changed files with 27 additions and 13 deletions
|
|
@ -464,13 +464,11 @@ export const openCardByData = (app: App, cardsData: {
|
|||
if (exit) {
|
||||
return;
|
||||
}
|
||||
const dialogPosition = window.siyuan.storage[Constants.LOCAL_DIALOGPOSITION][Constants.DIALOG_OPENCARD];
|
||||
const dialog = new Dialog({
|
||||
positionId: Constants.DIALOG_OPENCARD,
|
||||
content: genCardHTML({id, cardType, cardsData, isTab: false}),
|
||||
width: dialogPosition ? dialogPosition.width + "px" : (isMobile() ? "100vw" : "80vw"),
|
||||
height: dialogPosition ? dialogPosition.height + "px" : (isMobile() ? "100vh" : "70vh"),
|
||||
left: dialogPosition?.left,
|
||||
top: dialogPosition?.top,
|
||||
width: isMobile() ? "100vw" : "80vw",
|
||||
height: isMobile() ? "100vh" : "70vh",
|
||||
destroyCallback() {
|
||||
if (editor) {
|
||||
editor.destroy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue