This commit is contained in:
Vanessa 2025-03-04 10:51:59 +08:00
parent 487ded0a06
commit c89e2a6c39
6 changed files with 6 additions and 6 deletions

View File

@ -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 {

View File

@ -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);

View File

@ -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 {

View File

@ -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";

View File

@ -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();

View File

@ -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({