Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Do not open the sidebar automatically on small widths
Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen authored and backportbot-nextcloud[bot] committed Feb 3, 2023
commit c4f4bbeaa6e174821fe5b99f80f5f5767d9615bd
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