Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/9092

Vanessac3a970f478ca
diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts
index 8061be1de4..aee5726546 100644
--- a/app/src/block/popover.ts
+++ b/app/src/block/popover.ts
@@ -25,8 +25,12 @@ export const initBlockPopover = (app: App) => {
if (hasClosestByAttribute(event.target, "data-type", "fold", true)) {
tip = window.siyuan.languages.fold;
}
- if (aElement.classList.contains("av__celltext") && aElement.scrollWidth > aElement.parentElement.clientWidth - 11) {
- tip = aElement.textContent;
+ if (aElement.classList.contains("av__celltext")) {
+ if (aElement.scrollWidth > aElement.parentElement.clientWidth - 11) {
+ tip = aElement.textContent;
+ } else {
+ return;
+ }
}
if (!tip) {
tip = aElement.getAttribute("data-href");