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

Vanessaae135681c4d2
diff --git a/app/src/assets/scss/business/_av.scss b/app/src/assets/scss/business/_av.scss
index e39449c6dd..56f942a262 100644
--- a/app/src/assets/scss/business/_av.scss
+++ b/app/src/assets/scss/business/_av.scss
@@ -50,6 +50,7 @@
&__title {
outline: none;
+ font-weight: bold;
&:empty::after {
color: var(--b3-theme-on-surface);
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index adffeae646..126f3b9f1a 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -399,7 +399,6 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => {
}]);
blockElement.setAttribute("updated", newUpdated);
nameElement.dataset.title = newData;
- blockElement.querySelector(".layout-tab-bar .item__text").textContent = newData;
// 当前页面不能进行推送,否则光标会乱跳
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${avId}"]`)).forEach((item: HTMLElement) => {
@@ -412,7 +411,6 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => {
}
titleElement.textContent = newData;
titleElement.dataset.title = newData;
- item.querySelector(".layout-tab-bar .item__text").textContent = newData;
});
};
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index 7bf758c634..814f94d5c0 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -301,7 +301,6 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation, isUndo: bool
}
titleElement.textContent = operation.data;
titleElement.dataset.title = operation.data;
- item.querySelector(".layout-tab-bar .item__text").textContent = operation.data;
});
}
if (lastParentID === operation.parentID && protyle.contentElement.isSameNode(lastElement)) {