Vanessa 2023-12-10 20:45:12 +08:00
parent 0ee6f499fe
commit 61f1ab24e5
2 changed files with 6 additions and 1 deletions

View file

@ -316,6 +316,11 @@
text-decoration: underline var(--b3-border-color); text-decoration: underline var(--b3-border-color);
} }
&--ref {
text-decoration: underline var(--b3-border-color);
color: var(--b3-theme-on-surface);
}
& > .av__cellicon { & > .av__cellicon {
margin: 0 5px; margin: 0 5px;
height: 10px; height: 10px;

View file

@ -150,7 +150,7 @@ style="width: ${column.width || "200px"}">${getCalcValue(column) || '<svg><use x
} }
text = `<span class="av__celltext av__celltext--url" data-type="${cell.valueType}"${urlAttr}>${urlContent}</span>`; text = `<span class="av__celltext av__celltext--url" data-type="${cell.valueType}"${urlAttr}>${urlContent}</span>`;
} else if (cell.valueType === "block") { } else if (cell.valueType === "block") {
text = `<span class="av__celltext">${cell.value.block.content || ""}</span>`; text = `<span class="av__celltext${cell.value?.isDetached ? "" : " av__celltext--ref"}">${cell.value.block.content || ""}</span>`;
if (cell.value?.isDetached) { if (cell.value?.isDetached) {
text += `<span class="b3-chip b3-chip--info b3-chip--small" data-type="block-more" >${window.siyuan.languages.more}</span>`; text += `<span class="b3-chip b3-chip--info b3-chip--small" data-type="block-more" >${window.siyuan.languages.more}</span>`;
} else { } else {