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

Vanessa23c68438033d
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts
index b5cf034a7a..8a10088b90 100644
--- a/app/src/protyle/render/av/col.ts
+++ b/app/src/protyle/render/av/col.ts
@@ -571,20 +571,19 @@ const addAttrViewColAnimation = (options: {
}
const nodeId = options.blockElement.getAttribute("data-node-id");
if (options.blockElement.classList.contains("av")) {
- options.blockElement.querySelectorAll(".av__row").forEach((item, index) => {
+ options.blockElement.querySelectorAll(".av__row").forEach((item) => {
let previousElement;
if (options.previousID) {
previousElement = item.querySelector(`[data-col-id="${options.previousID}"]`);
} else {
- previousElement = item.lastElementChild.previousElementSibling;
+ previousElement = item.querySelector(".av__cell").previousElementSibling;
}
let html = "";
- if (index === 0) {
- // av__pulse 用于检测是否新增,和 render 中 isPulse 配合弹出菜单
+ if (item.classList.contains("av__row--header")) {
html = `<div class="av__cell av__cell--header" draggable="true" data-icon="${options.icon || ""}" data-col-id="${options.id}" data-dtype="${options.type}" data-wrap="false" style="width: 200px;">
${options.icon ? unicode2Emoji(options.icon, "av__cellheadericon", true) : `<svg class="av__cellheadericon"><use xlink:href="#${getColIconByType(options.type)}"></use></svg>`}
<span class="av__celltext fn__flex-1">${options.name}</span>
- <div class="av__widthdrag av__pulse"></div>
+ <div class="av__widthdrag"></div>
</div>`;
} else {
html = '<div class="av__cell" style="width: 200px"><span class="av__pulse"></span></div>';