mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
b7f49bde1e
commit
73d232bafb
3 changed files with 30 additions and 8 deletions
|
|
@ -87,6 +87,7 @@ export class Tree {
|
|||
html += `<li class="b3-list-item${isMobile() ? "" : " b3-list-item--hide-action"}"
|
||||
${item.id ? 'data-node-id="' + item.id + '"' : ""}
|
||||
${item.box ? 'data-notebook-id="' + item.box + '"' : ""}
|
||||
style="--file-toggle-width:${(item.depth - 1) * 18 + 38}px"
|
||||
data-treetype="${item.type}"
|
||||
data-type="${item.nodeType}"
|
||||
data-subtype="${item.subType}"
|
||||
|
|
@ -141,6 +142,7 @@ ${item.label ? "data-label='" + item.label + "'" : ""}>
|
|||
style = `padding-left: ${(item.depth - 1) * 18 + 22}px;margin-right: 2px`;
|
||||
}
|
||||
html += `<li class="b3-list-item${isMobile() ? "" : " b3-list-item--hide-action"}"
|
||||
style="--file-toggle-width:${(item.depth - 1) * 18 + 38}px"
|
||||
data-node-id="${item.id}"
|
||||
data-ref-text="${encodeURIComponent(item.refText)}"
|
||||
data-def-id="${item.defID}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue