diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 078a1a530..7747a6576 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -2565,8 +2565,14 @@ export class Gutter {
if (index === 0) {
// 不单独显示,要不然在块的间隔中,gutter 会跳来跳去的
if (["NodeBlockquote", "NodeList", "NodeCallout", "NodeSuperBlock"].includes(type)) {
- if (target && type === "NodeCallout" && hasTopClosestByClassName(target, "callout-info")) {
+ if (target && type === "NodeCallout") {
// Callout 标题需显示
+ const calloutInfoElement = hasTopClosestByClassName(target, "callout-info");
+ if (calloutInfoElement) {
+ element = calloutInfoElement;
+ } else {
+ return;
+ }
} else {
return;
}
@@ -2606,11 +2612,11 @@ export class Gutter {
if (protyle.options.backlinkData) {
popoverHTML = `class="popover__block" data-id="${dataNodeId}"`;
}
- const buttonHTML = ``;
+` : "";
if (!hideParent) {
html = buttonHTML + html;
}
@@ -2630,7 +2636,7 @@ data-type="fold" style="cursor:inherit;">