mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
c3d28a35fa
commit
231d30549e
2 changed files with 2 additions and 0 deletions
|
|
@ -932,6 +932,7 @@ export const openMenuPanel = (options: {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
break;
|
break;
|
||||||
} else if (type === "av-add") {
|
} else if (type === "av-add") {
|
||||||
|
window.siyuan.menus.menu.remove();
|
||||||
addView(options.protyle, options.blockElement);
|
addView(options.protyle, options.blockElement);
|
||||||
avPanelElement.remove();
|
avPanelElement.remove();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
|
||||||
|
|
@ -288,6 +288,7 @@ ${cell.color ? `color:${cell.color};` : ""}">${text}</div>`;
|
||||||
focusBlock(e);
|
focusBlock(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
e.querySelector(".layout-tab-bar").scrollLeft = (e.querySelector(".layout-tab-bar .item--focus") as HTMLElement).offsetLeft;
|
||||||
if (cb) {
|
if (cb) {
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue