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

Vanessa12449b38ca61
diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts
index 67f8ee056a..c0234e50c4 100644
--- a/app/src/block/popover.ts
+++ b/app/src/block/popover.ts
@@ -32,7 +32,7 @@ export const initBlockPopover = (app: App) => {
if (aElement.classList.contains("av__cell--header")) {
const textElement = aElement.querySelector(".av__celltext");
const desc = aElement.getAttribute("data-desc");
- if (textElement.scrollWidth > textElement.clientWidth || desc) {
+ if (textElement.scrollWidth > textElement.clientWidth + 0.5 || desc) {
if (desc) {
tip = `${getCellText(aElement)}<div class='ft__on-surface'>${escapeAriaLabel(desc)}</div>`;
} else {
@@ -57,7 +57,7 @@ export const initBlockPopover = (app: App) => {
} else if (aElement.parentElement.parentElement.classList.contains("av__views") && aElement.parentElement.classList.contains("layout-tab-bar")) {
const textElement = aElement.querySelector(".item__text");
const desc = aElement.getAttribute("data-desc");
- if (textElement.scrollWidth > textElement.clientWidth + 2 || desc) {
+ if (textElement.scrollWidth > textElement.clientWidth + 0.5 || desc) {
if (desc) {
tip = `${textElement.textContent}<div class='ft__on-surface'>${escapeAriaLabel(desc)}</div>`;
} else {