fix: Alt 点击列表项块标之后,折叠块标的方向需要根据列表项的折叠状态变化 (#13978)

fix https://github.com/siyuan-note/siyuan/issues/13955
This commit is contained in:
Jeffrey Chen 2025-02-04 17:16:41 +08:00 committed by GitHub
parent 3f0ec1630a
commit aa43b29a4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -204,6 +204,7 @@ export class Gutter {
}
}
});
buttonElement.parentElement.querySelector("[data-type='fold'] > svg")?.setAttribute("style", `width: 10px${hasFold ? ";transform:rotate(90deg)" : ""}`);
const doOperations: IOperation[] = [];
const undoOperations: IOperation[] = [];
Array.from(foldElement.children).forEach((ulElement) => {
@ -352,6 +353,7 @@ export class Gutter {
}
}
});
buttonElement.parentElement.querySelector("[data-type='fold'] > svg")?.setAttribute("style", `width: 10px${hasFold ? ";transform:rotate(90deg)" : ""}`);
const doOperations: IOperation[] = [];
const undoOperations: IOperation[] = [];
Array.from(foldElement.parentElement.children).find((listItemElement) => {