🐛 标题存在字体颜色时大纲异常 https://github.com/siyuan-note/siyuan/issues/5009

This commit is contained in:
Liang Ding 2022-05-27 10:05:16 +08:00
parent 9b2ab2ed35
commit 6d6cfbe669
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 1 additions and 3 deletions

View file

@ -386,7 +386,6 @@ declare interface IBlockTree {
nodeType: string,
subType: string,
name: string,
full: string,
type: string,
depth: number,
url?: string,

View file

@ -71,7 +71,7 @@ data-type="${item.nodeType}"
data-subtype="${item.subType}"
${item.label ? "data-label='" + item.label + "'" : ""}>
<span style="padding-left: ${item.depth * 16}px" class="b3-list-item__toggle">
<svg data-id="${item.full || (item.name + item.depth)}" class="b3-list-item__arrow ${((item.children && item.children.length > 0) || (item.blocks && item.blocks.length > 0)) ? "b3-list-item__arrow--open" : "fn__hidden"}"><use xlink:href="#iconRight"></use></svg>
<svg data-id="${(item.name + item.depth)}" class="b3-list-item__arrow ${((item.children && item.children.length > 0) || (item.blocks && item.blocks.length > 0)) ? "b3-list-item__arrow--open" : "fn__hidden"}"><use xlink:href="#iconRight"></use></svg>
</span>
${iconHTML}
<span class="b3-list-item__text">${item.name}</span>

View file

@ -64,7 +64,6 @@ type Path struct {
ID string `json:"id"` // 块 ID
Box string `json:"box"` // 块 Box
Name string `json:"name"` // 当前路径
Full string `json:"full"` // 全路径
Type string `json:"type"` // "path"
NodeType string `json:"nodeType"` // 节点类型
SubType string `json:"subType"` // 节点子类型