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/15180

Vanessabc27681e38b1
diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts
index adafb5085c..309650014e 100644
--- a/app/src/block/popover.ts
+++ b/app/src/block/popover.ts
@@ -31,7 +31,7 @@ export const initBlockPopover = (app: App) => {
if (aElement) {
let tooltipClass = "";
let tip = aElement.getAttribute("aria-label") || "";
- if (aElement.classList.contains("av__cell")) {
+ if (aElement.classList.contains("av__cell") && !aElement.classList.contains("ariaLabel")) {
if (aElement.classList.contains("av__cell--header")) {
const textElement = aElement.querySelector(".av__celltext");
const desc = aElement.getAttribute("data-desc");
@@ -49,6 +49,7 @@ export const initBlockPopover = (app: App) => {
tooltipClass = "href";
}
}
+ tip = "";
if (!tip && aElement.dataset.wrap !== "true" && event.target.dataset.type !== "block-more" && !hasClosestByClassName(event.target, "block__icon")) {
aElement.style.overflow = "auto";
if (aElement.scrollWidth > aElement.clientWidth + 2) {
@@ -308,7 +309,7 @@ const hidePopover = (event: MouseEvent & { path: HTMLElement[] }) => {
}
});
if (hasToolbar) {
- break;
+ break;
}
item.destroy();
}