diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index b2a8d4652..8d66f3801 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -1184,6 +1184,8 @@ export class Gutter {
click() {
protyle.toolbar.showRender(protyle, nodeElement);
}
+ }, {
+ type: "separator"
}, {
label: `
${window.siyuan.languages.embedBlockBreadcrumb}
`,
@@ -1203,6 +1205,25 @@ export class Gutter {
window.siyuan.menus.menu.remove();
});
}
+ }, {
+ label: `${window.siyuan.languages.hideHeadingBelowBlocks}
+
`,
+ bind(element) {
+ element.addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {
+ const inputElement = element.querySelector("input");
+ if (event.target.tagName !== "INPUT") {
+ inputElement.checked = !inputElement.checked;
+ }
+ nodeElement.setAttribute("custom-heading-mode", inputElement.checked ? "1" : "0");
+ fetchPost("/api/attr/setBlockAttrs", {
+ id,
+ attrs: {"custom-heading-mode": inputElement.checked ? "1" : "0"}
+ });
+ nodeElement.removeAttribute("data-render");
+ blockRender(protyle, nodeElement);
+ window.siyuan.menus.menu.remove();
+ });
+ }
}]
}).element);
} else if (type === "NodeHeading" && !window.siyuan.config.readonly && !window.siyuan.config.editor.readOnly) {
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index e2988f0dc..a6bb99417 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -780,10 +780,6 @@ export class Toolbar {
this.subElement.innerHTML = `