mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
d5113b3075
commit
77865456bc
2 changed files with 19 additions and 3 deletions
|
|
@ -59,9 +59,15 @@
|
|||
border-bottom: 1px solid var(--b3-theme-surface-lighter);
|
||||
position: relative;
|
||||
|
||||
&:hover .av__gutters {
|
||||
&:hover {
|
||||
[data-type="block-ref"] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.av__gutters {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&--select {
|
||||
background-color: var(--b3-theme-primary-lightest);
|
||||
|
|
@ -171,6 +177,13 @@
|
|||
margin-right: 5px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
[data-type="block-ref"] {
|
||||
display: none;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
&__cellheader {
|
||||
|
|
|
|||
|
|
@ -62,7 +62,10 @@ style="width: ${column.width || "200px"}">${getCalcValue(column) || '<svg><use x
|
|||
if (cell.valueType === "text") {
|
||||
text = `<span class="av__celltext">${cell.value?.text.content || ""}</span>`;
|
||||
} else if (cell.valueType === "block") {
|
||||
text = `<span class="av__celltext">${cell.value?.block.content || ""}</span>`;
|
||||
text = `<span class="av__celltext">${cell.value?.block.content || ""}</span>`
|
||||
if (cell.value?.block.id) {
|
||||
text += `<span class="b3-chip b3-chip--small" data-type="block-ref" data-id="${cell.value.block.id}" data-subtype="d">${window.siyuan.languages.openBy}</span>`;
|
||||
}
|
||||
} else if (cell.valueType === "number") {
|
||||
text = `<span class="av__celltext">${cell.value?.number.content || ""}</span>`;
|
||||
} else if (cell.valueType === "mSelect" || cell.valueType === "select") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue