aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-01-27 14:11:44 +0100
committerSimon L <szaimen@e.mail.de>2023-02-02 19:01:19 +0100
commit7fa42a2f032db62294c9c1b5ef3af5bbd92029d2 (patch)
tree9952d3799024a18ee786e2efc067536b94c4831c /apps
parent07b9dbab3b955f90540ab8d99583f9556eea9fd3 (diff)
downloadnextcloud-server-7fa42a2f032db62294c9c1b5ef3af5bbd92029d2.tar.gz
nextcloud-server-7fa42a2f032db62294c9c1b5ef3af5bbd92029d2.zip
Do not open the sidebar automatically on small widths
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index e7641b2607d..2d93ced7100 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -433,7 +433,9 @@
OCA.Files.Files.handleDownload(url);
}
- OCA.Files.Sidebar.open(fileInfo.path);
+ if (document.documentElement.clientWidth > 1024) {
+ OCA.Files.Sidebar.open(fileInfo.path);
+ }
} catch (error) {
console.error(`Failed to trigger default action on the file for URL: ${location.href}`, error)
}
@@ -3340,7 +3342,9 @@
}
if (file.length === 1) {
_.defer(function() {
- this.showDetailsView(file[0]);
+ if (document.documentElement.clientWidth > 1024) {
+ this.showDetailsView(file[0]);
+ }
}.bind(this));
}
this.highlightFiles(file, function($tr) {