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

Vanessa812403220929
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index 54373ea301..8e2c6f201e 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -728,12 +728,11 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
}
if (operation.action === "setAttrViewShowIcon") {
getAVElements(protyle, operation.avID, operation.viewID).forEach((item) => {
- item.querySelectorAll('.av__cell[data-dtype="block"] .b3-menu__avemoji, .av__cell[data-dtype="relation"] .b3-menu__avemoji').forEach(cellItem => {
- if (operation.data) {
- cellItem.classList.remove("fn__none");
- } else {
- cellItem.classList.add("fn__none");
- }
+ item.querySelectorAll('.av__cell[data-dtype="block"] .b3-menu__avemoji').forEach(cellItem => {
+ cellItem.classList.toggle("fn__none", !operation.data);
+ });
+ item.querySelectorAll('.av__cell[data-dtype="relation"] .av__cell--relation').forEach(cellItem => {
+ cellItem.firstElementChild.classList.toggle("fn__none", !operation.data);
});
});
return;