🎨 Clicking the doc icon in the doc tree will expand on mobile https://github.com/siyuan-note/siyuan/issues/16163

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-10-21 12:21:47 +08:00
parent 8d9ca20b55
commit 3f9e6d0eaa
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -111,6 +111,9 @@ export class MobileFiles extends Model {
filesElement.addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {
let target = event.target as HTMLElement;
while (target && !target.isEqualNode(this.actionsElement)) {
if (target.classList.contains("b3-list-item__icon")) {
target = target.previousElementSibling as HTMLElement;
}
const type = target.getAttribute("data-type");
if (type === "refresh") {
if (!target.getAttribute("disabled")) {