mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 21:48:06 +01:00
This commit is contained in:
parent
1b98d75e12
commit
9ea3da3a1e
3 changed files with 27 additions and 8 deletions
|
|
@ -12,6 +12,7 @@ import {unicode2Emoji} from "../../emoji";
|
|||
import {mountHelp, newNotebook} from "../../util/mount";
|
||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
||||
import {newFile} from "../../util/newFile";
|
||||
import {isMobile} from "../../util/functions";
|
||||
|
||||
export class MobileFiles extends Model {
|
||||
public element: HTMLElement;
|
||||
|
|
@ -175,15 +176,28 @@ export class MobileFiles extends Model {
|
|||
if (type === "new") {
|
||||
newFile(notebookId, pathString);
|
||||
} else if (type === "more-root") {
|
||||
initNavigationMenu(target.parentElement).popup({x, y});
|
||||
initNavigationMenu(target.parentElement)
|
||||
if (isMobile()) {
|
||||
window.siyuan.menus.menu.fullscreen("bottom");
|
||||
} else {
|
||||
window.siyuan.menus.menu.popup({
|
||||
x,
|
||||
y
|
||||
});
|
||||
}
|
||||
window.siyuan.menus.menu.element.style.zIndex = "310";
|
||||
}
|
||||
}
|
||||
if (type === "more-file") {
|
||||
initFileMenu(notebookId, pathString, target.parentElement).popup({
|
||||
x,
|
||||
y
|
||||
});
|
||||
initFileMenu(notebookId, pathString, target.parentElement);
|
||||
if (isMobile()) {
|
||||
window.siyuan.menus.menu.fullscreen("bottom");
|
||||
} else {
|
||||
window.siyuan.menus.menu.popup({
|
||||
x,
|
||||
y
|
||||
});
|
||||
}
|
||||
window.siyuan.menus.menu.element.style.zIndex = "310";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue