Browse Source
Merge pull request #36409 from nextcloud/enh/noid/dont-automatically-open-sidebar-on-mobile
Do not open the sidebar automatically on small widths
pull/36356/head
Simon L
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
2 deletions
-
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) { |
|
|
|
|