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

Vanessa7b4ead5e8a05
diff --git a/app/src/dialog/tooltip.ts b/app/src/dialog/tooltip.ts
index 2450111379..7c4a6a8915 100644
--- a/app/src/dialog/tooltip.ts
+++ b/app/src/dialog/tooltip.ts
@@ -39,6 +39,10 @@ export const showTooltip = (message: string, target: Element, error = false) =>
// file tree and outline、backlink
top = parentRect.top;
left = parentRect.right + 8;
+ } else if (position === "parentW") {
+ // 数据库属性视图
+ top = parentRect.top + 8;
+ left = parentRect.left - messageElement.clientWidth;
}
const topHeight = position === "parentE" ? top : targetRect.top;
const bottomHeight = window.innerHeight - top;
diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts
index 1dcf6fe9f0..8d6855003f 100644
--- a/app/src/protyle/render/av/blockAttr.ts
+++ b/app/src/protyle/render/av/blockAttr.ts
@@ -162,7 +162,7 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle: IPr
table.keyValues?.forEach(item => {
html += `<div class="block__icons av__row" data-id="${id}">
<div class="block__icon" draggable="true"><svg><use xlink:href="#iconDrag"></use></svg></div>
- <div class="block__logo ariaLabel" aria-label="${escapeAttr(item.key.name)}"">
+ <div class="block__logo ariaLabel" data-position="parentW" aria-label="${escapeAttr(item.key.name)}"">
${item.key.icon ? unicode2Emoji(item.key.icon, "block__logoicon", true) : `<svg class="block__logoicon"><use xlink:href="#${getColIconByType(item.key.type)}"></use></svg>`}
<span>${item.key.name}</span>
</div>