mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
🎨 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:
parent
f2f112cebe
commit
1f70336b41
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue