diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts index aee572654..9c55c3ca7 100644 --- a/app/src/block/popover.ts +++ b/app/src/block/popover.ts @@ -44,8 +44,13 @@ export const initBlockPopover = (app: App) => { event.stopPropagation(); return; } - } else if (!aElement && !hasClosestByAttribute(event.target, "id", "tooltip", true)) { - hideTooltip(); + } else if (!aElement) { + const tipElement = hasClosestByAttribute(event.target, "id", "tooltip", true) + if (!tipElement || ( + tipElement && (tipElement.clientHeight >= tipElement.scrollHeight && tipElement.clientWidth >= tipElement.scrollWidth) + )) { + hideTooltip(); + } } if (window.siyuan.config.editor.floatWindowMode === 1 || window.siyuan.shiftIsPressed) { clearTimeout(timeoutHide);