mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
afe9b60444
commit
fe907598d7
3 changed files with 6 additions and 4 deletions
|
|
@ -43,14 +43,14 @@
|
|||
|
||||
.b3-menu {
|
||||
&__submenu {
|
||||
top: 48.5px;
|
||||
top: 49.5px;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
max-height: none;
|
||||
right: 0;
|
||||
box-shadow: none;
|
||||
border: 0;
|
||||
padding: 24px 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
|
||||
& > .b3-menu__item:first-child {
|
||||
|
|
@ -284,7 +284,7 @@
|
|||
border: 1px solid var(--b3-theme-surface-lighter);
|
||||
border-radius: var(--b3-border-radius-b);
|
||||
background-color: var(--b3-menu-background);
|
||||
padding: 8px;
|
||||
padding: 8px 0;
|
||||
position: fixed;
|
||||
box-shadow: var(--b3-dialog-shadow);
|
||||
z-index: 1;
|
||||
|
|
|
|||
|
|
@ -225,8 +225,9 @@ export class MenuItem {
|
|||
if (options.submenu) {
|
||||
const submenuElement = document.createElement("div");
|
||||
submenuElement.classList.add("b3-menu__submenu");
|
||||
submenuElement.innerHTML = '<div class="b3-menu__items"></div>';
|
||||
options.submenu.forEach((item) => {
|
||||
submenuElement.append(new MenuItem(item).element);
|
||||
submenuElement.firstElementChild.append(new MenuItem(item).element);
|
||||
});
|
||||
this.element.insertAdjacentHTML("beforeend", '<svg class="b3-menu__icon b3-menu__icon--arrow"><use xlink:href="#iconRight"></use></svg>');
|
||||
this.element.append(submenuElement);
|
||||
|
|
|
|||
|
|
@ -1589,6 +1589,7 @@ export class Gutter {
|
|||
|
||||
private genHeadingTransform(protyle: IProtyle, id: string, level: number) {
|
||||
return {
|
||||
iconHTML: "",
|
||||
icon: "iconHeading" + level,
|
||||
label: window.siyuan.languages["heading" + level],
|
||||
click() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue