summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-01-27 14:11:44 +0100
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-02-03 09:18:22 +0000
commitc4f4bbeaa6e174821fe5b99f80f5f5767d9615bd (patch)
treec647c3960fa251eb21907034806bbd4d83fb59b9 /apps
parentb06b3f36ad63b1fcffe11f342b5474a0837b5c23 (diff)
downloadnextcloud-server-c4f4bbeaa6e174821fe5b99f80f5f5767d9615bd.tar.gz
nextcloud-server-c4f4bbeaa6e174821fe5b99f80f5f5767d9615bd.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 9fce98340e8..463420ff160 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -431,7 +431,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)
}
@@ -3341,7 +3343,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) {