mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve exit focus positioning https://github.com/siyuan-note/siyuan/issues/14056
This commit is contained in:
parent
d59113104b
commit
6d03eb61a3
1 changed files with 4 additions and 2 deletions
|
|
@ -275,8 +275,7 @@ func GetUnfoldedParentID(id string) (parentID string) {
|
|||
if "1" == parent.IALAttr("fold") {
|
||||
firstFoldedParent = parent
|
||||
parentID = firstFoldedParent.ID
|
||||
}
|
||||
if "1" != parent.IALAttr("fold") {
|
||||
} else {
|
||||
if nil != firstFoldedParent {
|
||||
parentID = firstFoldedParent.ID
|
||||
} else {
|
||||
|
|
@ -285,6 +284,9 @@ func GetUnfoldedParentID(id string) (parentID string) {
|
|||
return
|
||||
}
|
||||
}
|
||||
if "" == parentID {
|
||||
parentID = id
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue