mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Do not open the sidebar automatically on small widths
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
b06b3f36ad
commit
c4f4bbeaa6
1 changed files with 6 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue