浏览代码

Do not open the sidebar automatically on small widths

Signed-off-by: Simon L <szaimen@e.mail.de>
tags/v26.0.0beta3
Simon L 1年前
父节点
当前提交
7fa42a2f03
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6
    2
      apps/files/js/filelist.js

+ 6
- 2
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) {

正在加载...
取消
保存