mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 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:
parent
8d9ca20b55
commit
3f9e6d0eaa
1 changed files with 3 additions and 0 deletions
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue