🎨 rollup render

This commit is contained in:
Vanessa 2024-01-01 17:51:02 +08:00
parent 5c261f59c3
commit 321dfdc8d2
2 changed files with 7 additions and 6 deletions

View file

@ -312,7 +312,7 @@
color: var(--b3-theme-on-surface);
height: 14px;
width: 14px;
float: left;
vertical-align: bottom;
padding: 4.5px 0;
&:hover {

View file

@ -672,12 +672,13 @@ const renderRollup = (cellValue: IAVCellValue, wrap: boolean) => {
text = cellValue ? (cellValue[cellValue.type as "text"].content || "") : "";
} else if (["url", "email", "phone"].includes(cellValue.type)) {
const urlContent = cellValue ? cellValue[cellValue.type as "url"].content : "";
// https://github.com/siyuan-note/siyuan/issues/9291
let urlAttr = "";
if (cellValue.type === "url") {
urlAttr = ` data-href="${urlContent}"`;
if (urlContent) {
let urlAttr = "";
if (cellValue.type === "url") {
urlAttr = ` data-href="${urlContent}"`;
}
text = `<span class="av__celltext av__celltext--url" data-type="${cellValue.type}"${urlAttr}>${urlContent}</span>`;
}
text = `<span class="av__celltext av__celltext--url" data-type="${cellValue.type}"${urlAttr}>${urlContent}</span>`;
} else if (cellValue.type === "block") {
if (cellValue?.isDetached) {
text = `<span class="av__celltext">${cellValue.block?.content || ""}</span>`;