Skip to content

Commit

Permalink
Merge pull request #36514 from nextcloud/backport/36409/stable25
Browse files Browse the repository at this point in the history
[stable25] Do not open the sidebar automatically on small widths
  • Loading branch information
szaimen authored Feb 3, 2023
2 parents 216a8ba + c4f4bbe commit 2cfded1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 2cfded1

Please sign in to comment.