diff options
author | Simon L <szaimen@e.mail.de> | 2023-02-03 10:08:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 10:08:29 +0100 |
commit | a579b36113dde4294b1974f08b9ee0ef4545369f (patch) | |
tree | bf1229415c5caeb5eec8f61884dfe12efc092261 /apps | |
parent | 08bfe64b49f2b3242db221412b16d6aeed17915c (diff) | |
parent | 7fa42a2f032db62294c9c1b5ef3af5bbd92029d2 (diff) | |
download | nextcloud-server-a579b36113dde4294b1974f08b9ee0ef4545369f.tar.gz nextcloud-server-a579b36113dde4294b1974f08b9ee0ef4545369f.zip |
Merge pull request #36409 from nextcloud/enh/noid/dont-automatically-open-sidebar-on-mobile
Do not open the sidebar automatically on small widths
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 8 |
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) { |