Skip to content

Commit 05f4ba6

Browse files
committed
🎨 fix #11365
1 parent 23ff9ae commit 05f4ba6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -693,12 +693,11 @@ export const renderCell = (cellValue: IAVCellValue, rowIndex = 0) => {
693693
} else if ("url" === cellValue.type) {
694694
text = renderCellURL(cellValue?.url?.content || "");
695695
} else if (cellValue.type === "block") {
696+
// 不可使用换行 https://github.com/siyuan-note/siyuan/issues/11365
696697
if (cellValue?.isDetached) {
697-
text = `<span class="av__celltext">${cellValue.block.content || ""}</span>
698-
<span class="b3-chip b3-chip--info b3-chip--small" data-type="block-more">${window.siyuan.languages.more}</span>`;
698+
text = `<span class="av__celltext">${cellValue.block.content || ""}</span><span class="b3-chip b3-chip--info b3-chip--small" data-type="block-more">${window.siyuan.languages.more}</span>`;
699699
} else {
700-
text = `<span data-type="block-ref" data-id="${cellValue.block.id}" data-subtype="s" class="av__celltext av__celltext--ref">${cellValue.block.content || window.siyuan.languages.untitled}</span>
701-
<span class="b3-chip b3-chip--info b3-chip--small" data-type="block-more">${window.siyuan.languages.update}</span>`;
700+
text = `<span data-type="block-ref" data-id="${cellValue.block.id}" data-subtype="s" class="av__celltext av__celltext--ref">${cellValue.block.content || window.siyuan.languages.untitled}</span><span class="b3-chip b3-chip--info b3-chip--small" data-type="block-more">${window.siyuan.languages.update}</span>`;
702701
}
703702
} else if (cellValue.type === "number") {
704703
text = `<span class="av__celltext" data-content="${cellValue?.number.isNotEmpty ? cellValue?.number.content : ""}">${cellValue?.number.formattedContent || cellValue?.number.content || ""}</span>`;

0 commit comments

Comments
 (0)