mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 19:38:48 +01:00
This commit is contained in:
parent
b8cbf50cc7
commit
370df7866c
3 changed files with 7 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ ctrl+p 搜索: 199
|
|||
// 需大于 .block__popover
|
||||
.b3-menu: 210
|
||||
|
||||
// 需小于 .b3-dialog 关于中的锁屏密码设置
|
||||
.side-panel: 220
|
||||
|
||||
// 需小于 #windowControls
|
||||
|
|
@ -53,6 +54,7 @@ ctrl+p 搜索: 199
|
|||
.b3-dialog: 305
|
||||
|
||||
// 历史中切换笔记本需临时大于 .b3-dialog https://github.com/siyuan-note/siyuan/issues/5107
|
||||
// 移动端排序和菜单需临时大于 .side-panel https://github.com/siyuan-note/siyuan/issues/5254
|
||||
.b3-menu: 310
|
||||
|
||||
// 需大于 .b3-dialog
|
||||
|
|
|
|||
|
|
@ -11,10 +11,12 @@ import {scrollCenter} from "../util/highlightById";
|
|||
import {lockFile} from "../dialog/processSystem";
|
||||
import {hasClosestByAttribute} from "../protyle/util/hasClosest";
|
||||
import {setEditMode} from "../protyle/util/setEditMode";
|
||||
import {hideElements} from "../protyle/ui/hideElements";
|
||||
|
||||
export const openMobileFileById = (id: string, hasContext?: boolean, action = [Constants.CB_GET_HL], pushStack = true) => {
|
||||
window.localStorage.setItem(Constants.LOCAL_DOCINFO, JSON.stringify({id, hasContext, action}));
|
||||
if (window.siyuan.mobileEditor) {
|
||||
hideElements(["toolbar", "hint", "util"], window.siyuan.mobileEditor.protyle);
|
||||
if (window.siyuan.mobileEditor.protyle.contentElement.classList.contains("fn__none")) {
|
||||
setEditMode(window.siyuan.mobileEditor.protyle, "wysiwyg");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -178,6 +178,7 @@ export class MobileFiles extends Model {
|
|||
newFile(notebookId, pathString, true);
|
||||
} else if (type === "more-root") {
|
||||
initNavigationMenu(target.parentElement).popup({x, y});
|
||||
window.siyuan.menus.menu.element.style.zIndex = "310";
|
||||
}
|
||||
}
|
||||
if (type === "more-file") {
|
||||
|
|
@ -185,6 +186,7 @@ export class MobileFiles extends Model {
|
|||
x,
|
||||
y
|
||||
});
|
||||
window.siyuan.menus.menu.element.style.zIndex = "310";
|
||||
}
|
||||
}
|
||||
event.preventDefault();
|
||||
|
|
@ -310,6 +312,7 @@ export class MobileFiles extends Model {
|
|||
clickEvent(6);
|
||||
}
|
||||
}).element);
|
||||
window.siyuan.menus.menu.element.style.zIndex = "310";
|
||||
window.siyuan.menus.menu.popup({x: event.clientX, y: event.clientY});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue