🎨 The outline item in the outline panel supports dragging to adjust the level and position https://github.com/siyuan-note/siyuan/issues/7957

This commit is contained in:
Daniel 2024-03-27 22:30:44 +08:00
parent f2f112cebe
commit 1f70336b41
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -72,7 +72,9 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {
}
if targetNode == heading.Previous {
return
if previousHeading.HeadingLevel >= heading.HeadingLevel {
return
}
}
diffLevel := heading.HeadingLevel - previousHeading.HeadingLevel