An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/10712
Vanessa34fcbacea2f5
diff --git a/app/src/block/popover.ts b/app/src/block/popover.tsindex e91512bada..5affab758c 100644--- a/app/src/block/popover.ts+++ b/app/src/block/popover.ts@@ -33,12 +33,19 @@ export const initBlockPopover = (app: App) => {if (textElement.scrollWidth > textElement.clientWidth + 2) {tip = getCellText(aElement);}- } else if (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) {- tip = getCellText(aElement);+ } else {+ if (aElement.firstElementChild.getAttribute("data-type") === "url") {+ if (aElement.firstElementChild.textContent.indexOf("...") > -1) {+ tip = aElement.firstElementChild.getAttribute("data-href");+ }+ }+ 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) {+ tip = getCellText(aElement);+ }+ aElement.style.overflow = "";}- aElement.style.overflow = "";}}if (!tip) {diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.tsindex d53a450957..396f2deacd 100644--- a/app/src/protyle/render/av/cell.ts+++ b/app/src/protyle/render/av/cell.ts@@ -40,6 +40,8 @@ export const getCellText = (cellElement: HTMLElement | false) => {textElements.forEach(item => {if (item.querySelector(".av__cellicon")) {cellText += `${item.firstChild.textContent} → ${item.lastChild.textContent}, `;+ } else if (item.getAttribute("data-type") === "url") {+ cellText = item.getAttribute("data-href") + ", ";} else if (item.getAttribute("data-type") !== "block-more") {cellText += item.textContent + ", ";}