Skip to content

Commit 3f9e6d0

Browse files
committed
🎨 Clicking the doc icon in the doc tree will expand on mobile #16163
Signed-off-by: Daniel <[email protected]>
1 parent 8d9ca20 commit 3f9e6d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/mobile/dock/MobileFiles.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ export class MobileFiles extends Model {
111111
filesElement.addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {
112112
let target = event.target as HTMLElement;
113113
while (target && !target.isEqualNode(this.actionsElement)) {
114+
if (target.classList.contains("b3-list-item__icon")) {
115+
target = target.previousElementSibling as HTMLElement;
116+
}
114117
const type = target.getAttribute("data-type");
115118
if (type === "refresh") {
116119
if (!target.getAttribute("disabled")) {

0 commit comments

Comments
 (0)