mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-26 00:44:07 +01:00
🎨 https://github.com/siyuan-note/siyuan/issues/15989 拖拽到折叠标题下需展开
This commit is contained in:
parent
db31c47760
commit
2b0e8feee2
3 changed files with 43 additions and 80 deletions
|
|
@ -253,7 +253,7 @@ export class Gutter {
|
|||
transaction(protyle, doOperations, undoOperations);
|
||||
buttonElement.removeAttribute("disabled");
|
||||
} else {
|
||||
const foldStatus = setFold(protyle, foldElement);
|
||||
const foldStatus = setFold(protyle, foldElement).fold;
|
||||
if (foldStatus === 1) {
|
||||
(buttonElement.firstElementChild as HTMLElement).style.transform = "";
|
||||
} else if (foldStatus === 0) {
|
||||
|
|
@ -396,7 +396,7 @@ export class Gutter {
|
|||
});
|
||||
transaction(protyle, doOperations, undoOperations);
|
||||
} else {
|
||||
const hasFold = setFold(protyle, foldElement);
|
||||
const hasFold = setFold(protyle, foldElement).fold;
|
||||
const foldArrowElement = buttonElement.parentElement.querySelector("[data-type='fold'] > svg") as HTMLElement;
|
||||
if (hasFold !== -1 && foldArrowElement) {
|
||||
foldArrowElement.style.transform = hasFold === 0 ? "rotate(90deg)" : "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue