+ searchHTML += `
`;
}
response.data.blocks.forEach((item: IBlock, index: number) => {
- let iconHTML;
- if (item.type === "NodeDocument" && item.ial.icon) {
- iconHTML = unicode2Emoji(item.ial.icon, "b3-list-item__graphic popover__block", true);
- iconHTML = iconHTML.replace('popover__block"', `popover__block" data-id="${item.id}"`);
- } else {
- iconHTML = `
`;
- }
- let attrHTML = "";
- if (item.name) {
- attrHTML += `
${item.name}`;
- }
- if (item.alias) {
- attrHTML += `
${item.alias}`;
- }
- if (item.memo) {
- attrHTML += `
${item.memo}`;
- }
- if (attrHTML) {
- attrHTML = `
${attrHTML}
`;
- }
const blockRefHTML = `
${oldValue}`;
- searchHTML += `
`;
+ searchHTML += `
`;
});
if (searchHTML === "") {
- searchHTML = `
`;
+ searchHTML = `
`;
}
this.element.lastElementChild.innerHTML = searchHTML;
});
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index c31ac4659..5a3f13e02 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -344,7 +344,7 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[]) => {
const style = `style="position:absolute;left: ${cellRect.left}px;top: ${cellRect.top}px;width:${Math.max(cellRect.width, 200)}px;height: ${cellRect.height}px"`;
const blockElement = hasClosestBlock(cellElements[0]);
if (type === "block" || type === "text") {
- html = `
`;
+ html = `
`;
} else if (type === "number") {
html = `
`;
} else if (["select", "mSelect"].includes(type) && blockElement) {
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index 1d8e1004b..b1ac01b82 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -64,7 +64,7 @@ style="width: ${column.width || "200px"}">${getCalcValue(column) || '