mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 19:59:08 +08:00
🚨
This commit is contained in:
parent
487ded0a06
commit
c89e2a6c39
@ -780,7 +780,7 @@ export class Files extends Model {
|
|||||||
currentPath = dirname + ".sy";
|
currentPath = dirname + ".sy";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const hiddenElement = liElement.querySelector(".fn__hidden")
|
const hiddenElement = liElement.querySelector(".fn__hidden");
|
||||||
if (hiddenElement) {
|
if (hiddenElement) {
|
||||||
hiddenElement.classList.remove("fn__hidden");
|
hiddenElement.classList.remove("fn__hidden");
|
||||||
} else {
|
} else {
|
||||||
|
@ -245,7 +245,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
|
|||||||
</div>`,
|
</div>`,
|
||||||
destroyCallback() {
|
destroyCallback() {
|
||||||
focusByRange(range);
|
focusByRange(range);
|
||||||
hideElements(["select"], protyle)
|
hideElements(["select"], protyle);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
dialog.element.setAttribute("data-key", Constants.DIALOG_ATTR);
|
dialog.element.setAttribute("data-key", Constants.DIALOG_ATTR);
|
||||||
|
@ -293,7 +293,7 @@ export class MobileFiles extends Model {
|
|||||||
currentPath = dirname + ".sy";
|
currentPath = dirname + ".sy";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const hiddenElement = liElement.querySelector(".fn__hidden")
|
const hiddenElement = liElement.querySelector(".fn__hidden");
|
||||||
if (hiddenElement) {
|
if (hiddenElement) {
|
||||||
hiddenElement.classList.remove("fn__hidden");
|
hiddenElement.classList.remove("fn__hidden");
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,7 +8,7 @@ import {setEditMode} from "../util/setEditMode";
|
|||||||
import {RecordMedia} from "../util/RecordMedia";
|
import {RecordMedia} from "../util/RecordMedia";
|
||||||
import {hideMessage, showMessage} from "../../dialog/message";
|
import {hideMessage, showMessage} from "../../dialog/message";
|
||||||
import {uploadFiles} from "../upload";
|
import {uploadFiles} from "../upload";
|
||||||
import {hasClosestBlock, hasClosestByAttribute, hasTopClosestByClassName} from "../util/hasClosest";
|
import {hasClosestBlock, hasTopClosestByClassName} from "../util/hasClosest";
|
||||||
import {needSubscribe} from "../../util/needSubscribe";
|
import {needSubscribe} from "../../util/needSubscribe";
|
||||||
import {isMobile} from "../../util/functions";
|
import {isMobile} from "../../util/functions";
|
||||||
import {zoomOut} from "../../menus/protyle";
|
import {zoomOut} from "../../menus/protyle";
|
||||||
|
@ -586,7 +586,7 @@ export class Background {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const itemsElement = menu.element.querySelector(".b3-menu__items")
|
const itemsElement = menu.element.querySelector(".b3-menu__items");
|
||||||
itemsElement.setAttribute("style", "overflow: initial");
|
itemsElement.setAttribute("style", "overflow: initial");
|
||||||
/// #if MOBILE
|
/// #if MOBILE
|
||||||
menu.fullscreen();
|
menu.fullscreen();
|
||||||
|
@ -1719,7 +1719,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||||||
if (item.element.contains(nodeElement)) {
|
if (item.element.contains(nodeElement)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
const id = nodeElement.getAttribute("data-node-id");
|
const id = nodeElement.getAttribute("data-node-id");
|
||||||
checkFold(id, (zoomIn, action) => {
|
checkFold(id, (zoomIn, action) => {
|
||||||
openFileById({
|
openFileById({
|
||||||
|
Loading…
Reference in New Issue
Block a user