Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/9194

Vanessa4f62adddc74c
diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts
index aee5726546..9c55c3ca7f 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);