mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-09 16:54:21 +01:00
This commit is contained in:
parent
8d467c7df2
commit
ee62729dc2
31 changed files with 32 additions and 84 deletions
|
|
@ -183,13 +183,11 @@ export class MobileFiles extends Model {
|
|||
} else if (type === "more-root") {
|
||||
initNavigationMenu(app, target.parentElement);
|
||||
window.siyuan.menus.menu.fullscreen("bottom");
|
||||
window.siyuan.menus.menu.element.style.zIndex = "310";
|
||||
}
|
||||
}
|
||||
if (type === "more-file") {
|
||||
initFileMenu(app, notebookId, pathString, target.parentElement);
|
||||
window.siyuan.menus.menu.fullscreen("bottom");
|
||||
window.siyuan.menus.menu.element.style.zIndex = "310";
|
||||
}
|
||||
}
|
||||
event.preventDefault();
|
||||
|
|
@ -239,7 +237,6 @@ export class MobileFiles extends Model {
|
|||
window.siyuan.menus.menu.append(new MenuItem(item).element);
|
||||
});
|
||||
window.siyuan.menus.menu.fullscreen("bottom");
|
||||
window.siyuan.menus.menu.element.style.zIndex = "310";
|
||||
}
|
||||
|
||||
private genNotebook(item: INotebook) {
|
||||
|
|
|
|||
|
|
@ -126,7 +126,6 @@ export class MobileTags {
|
|||
},
|
||||
}).element);
|
||||
window.siyuan.menus.menu.popup({x: event.clientX, y: event.clientY});
|
||||
window.siyuan.menus.menu.element.style.zIndex = "310";
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ class App {
|
|||
addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");
|
||||
addBaseURL();
|
||||
window.siyuan = {
|
||||
zIndex: 10,
|
||||
notebooks: [],
|
||||
transactions: [],
|
||||
reqIds: {},
|
||||
|
|
|
|||
|
|
@ -467,7 +467,6 @@ const initSearchEvent = (app: App, element: Element, config: ISearchOption) => {
|
|||
}
|
||||
}, config);
|
||||
});
|
||||
window.siyuan.menus.menu.element.style.zIndex = "220";
|
||||
window.siyuan.menus.menu.fullscreen();
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
|
@ -484,7 +483,6 @@ const initSearchEvent = (app: App, element: Element, config: ISearchOption) => {
|
|||
config.page = 1;
|
||||
updateSearchResult(config, element, true);
|
||||
});
|
||||
window.siyuan.menus.menu.element.style.zIndex = "220";
|
||||
window.siyuan.menus.menu.fullscreen();
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
|
|
|||
|
|
@ -391,6 +391,7 @@ export const showKeyboardToolbar = () => {
|
|||
return;
|
||||
}
|
||||
toolbarElement.classList.remove("fn__none");
|
||||
toolbarElement.style.zIndex = (++window.siyuan.zIndex).toString();
|
||||
const modelElement = document.getElementById("model");
|
||||
if (modelElement.style.transform === "translateY(0px)") {
|
||||
modelElement.style.paddingBottom = "42px";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue