mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
2d190bf708
commit
541480c9c4
3 changed files with 7 additions and 3 deletions
|
|
@ -126,12 +126,13 @@ export class Menu {
|
|||
<svg class="b3-menu__icon"><use xlink:href="#iconLeft"></use></svg>
|
||||
<span class="b3-menu__label">${window.siyuan.languages.back}</span>
|
||||
</div><button class="b3-menu__separator"></button>`);
|
||||
if (position === "bottom" ) {
|
||||
this.element.querySelectorAll(".b3-menu__submenu").forEach((item:HTMLElement) => {
|
||||
if (position === "bottom") {
|
||||
this.element.querySelectorAll(".b3-menu__submenu").forEach((item: HTMLElement) => {
|
||||
item.style.top = "calc(50vh + 48.5px)";
|
||||
});
|
||||
}
|
||||
this.popup({x: 0, y: position === "bottom" ? window.innerHeight / 2 : 0});
|
||||
this.element.scrollTop = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue