Skip to content

Commit 1a6b80b

Browse files
committed
🎨 #12384
1 parent 2ddff2a commit 1a6b80b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/src/protyle/render/av/blockAttr.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ export const genAVValueHTML = (value: IAVCellValue) => {
132132
if (item?.isDetached) {
133133
html += `<span class="av__cell--relation"><span>➖ </span><span class="av__celltext">${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}</span></span>`;
134134
} else {
135-
// data-block-id 用于更新 emoji
136-
html += `<span class="av__cell--relation" data-block-id="${item.block.id}"><span class="b3-menu__avemoji" data-unicode="${item.block.icon || ""}">${unicode2Emoji(item.block.icon || window.siyuan.storage[Constants.LOCAL_IMAGES].file)}</span><span data-type="block-ref" data-id="${item.block.id}" data-subtype="s" class="av__celltext av__celltext--ref">${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}</span></span>`;
135+
html += `<span class="av__cell--relation"><span data-unicode="${item.block.icon || ""}">${unicode2Emoji(item.block.icon || window.siyuan.storage[Constants.LOCAL_IMAGES].file)} </span><span data-type="block-ref" data-id="${item.block.id}" data-subtype="s" class="av__celltext av__celltext--ref">${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}</span></span>`;
137136
}
138137
}
139138
});
@@ -145,7 +144,7 @@ export const genAVValueHTML = (value: IAVCellValue) => {
145144
value?.rollup?.contents?.forEach((item) => {
146145
const rollupText = ["template", "select", "mSelect", "mAsset", "checkbox", "relation"].includes(item.type) ? genAVValueHTML(item) : genAVRollupHTML(item);
147146
if (rollupText) {
148-
html += rollupText + ",&nbsp;";
147+
html += rollupText.replace("fn__flex-1", "") + ",&nbsp;";
149148
}
150149
});
151150
if (html && html.endsWith(",&nbsp;")) {

0 commit comments

Comments
 (0)