Skip to content

Commit 361dbd1

Browse files
committed
Do not open the sidebar automatically on small widths
Signed-off-by: Simon L <[email protected]>
1 parent a63b557 commit 361dbd1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/files/js/filelist.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,9 @@
433433
OCA.Files.Files.handleDownload(url);
434434
}
435435

436-
OCA.Files.Sidebar.open(fileInfo.path);
436+
if (document.documentElement.clientWidth > 1024) {
437+
OCA.Files.Sidebar.open(fileInfo.path);
438+
}
437439
} catch (error) {
438440
console.error(`Failed to trigger default action on the file for URL: ${location.href}`, error)
439441
}

0 commit comments

Comments
 (0)