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

Vanessad61eb59e9365
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index 88b9758f8b..4e65ba040c 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -4,7 +4,7 @@ import {transaction} from "../../wysiwyg/transaction";
import {openEditorTab} from "../../../menus/util";
import {openFileAttr} from "../../../menus/commonMenuItem";
import {
- addDragFill,
+ addDragFill, cellValueIsEmpty,
genCellValueByElement,
getCellText,
getTypeByCellElement,
@@ -731,7 +731,9 @@ export const updateAttrViewCellAnimation = (cellElement: HTMLElement, value: IAV
const viewType = blockElement.getAttribute("data-av-type") as TAVView;
if (viewType === "gallery") {
const iconElement = cellElement.querySelector(".b3-menu__avemoji");
- cellElement.innerHTML = renderCell(value, undefined, iconElement ? !iconElement.classList.contains("fn__none") : false, viewType);
+ cellElement.innerHTML = renderCell(value, undefined, iconElement ? !iconElement.classList.contains("fn__none") : false, viewType) +
+ cellElement.querySelector(".av__gallery-tip").outerHTML;
+ cellElement.setAttribute("data-empty", cellValueIsEmpty(value).toString());
} else {
cellElement.innerHTML = renderCell(value);
}