mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
🎨 Improve the backlink panel breadcrumb and block sorting https://github.com/siyuan-note/siyuan/issues/13008
This commit is contained in:
parent
6ac292ff01
commit
f0a292ac51
3 changed files with 8 additions and 11 deletions
|
|
@ -416,11 +416,11 @@ func BuildBlockBreadcrumb(id string, excludeTypes []string) (ret []*BlockPath, e
|
|||
return
|
||||
}
|
||||
|
||||
ret = buildBlockBreadcrumb(node, excludeTypes, true)
|
||||
ret = buildBlockBreadcrumb(node, excludeTypes)
|
||||
return
|
||||
}
|
||||
|
||||
func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string, displayCurrentNode bool) (ret []*BlockPath) {
|
||||
func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string) (ret []*BlockPath) {
|
||||
ret = []*BlockPath{}
|
||||
if nil == node {
|
||||
return
|
||||
|
|
@ -481,8 +481,8 @@ func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string, displayCurrentN
|
|||
name = strings.ReplaceAll(name, editor.Caret, "")
|
||||
name = util.EscapeHTML(name)
|
||||
|
||||
if parent == node && !displayCurrentNode {
|
||||
add = false
|
||||
if parent == node {
|
||||
name = ""
|
||||
}
|
||||
|
||||
if add {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue