diff options
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/filelist.js | 8 | ||||
-rw-r--r-- | apps/files/l10n/zh_HK.js | 4 | ||||
-rw-r--r-- | apps/files/l10n/zh_HK.json | 4 |
3 files changed, 10 insertions, 6 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index e7641b2607d..2d93ced7100 100644 --- a/apps/files/js/filelist.js +++ b/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) { diff --git a/apps/files/l10n/zh_HK.js b/apps/files/l10n/zh_HK.js index 82748071834..f68972a8455 100644 --- a/apps/files/l10n/zh_HK.js +++ b/apps/files/l10n/zh_HK.js @@ -187,11 +187,11 @@ OC.L10N.register( "Show hidden files" : "顯示隱藏檔", "Crop image previews" : "圖片裁剪預覽", "Additional settings" : "其他設定", - "Webdav" : "Webdav", + "Webdav" : "WebDAV", "Copy to clipboard" : "複製到剪貼板", "Use this address to access your Files via WebDAV" : "用這位址使用 WebDAV 存取你的檔案。", "Clipboard is not available" : "剪貼板不可用", - "Webdav URL copied to clipboard" : "Webdav 連結已複製到剪貼板", + "Webdav URL copied to clipboard" : "WebDAV 連結已複製到剪貼板", "Unable to change the favourite state of the file" : "無法更改檔案的最愛狀態", "Error while loading the file data" : "載入檔案資料失敗", "Pick a template for {name}" : "為 {name} 選擇一個模板", diff --git a/apps/files/l10n/zh_HK.json b/apps/files/l10n/zh_HK.json index 080554da1ae..490ab547c92 100644 --- a/apps/files/l10n/zh_HK.json +++ b/apps/files/l10n/zh_HK.json @@ -185,11 +185,11 @@ "Show hidden files" : "顯示隱藏檔", "Crop image previews" : "圖片裁剪預覽", "Additional settings" : "其他設定", - "Webdav" : "Webdav", + "Webdav" : "WebDAV", "Copy to clipboard" : "複製到剪貼板", "Use this address to access your Files via WebDAV" : "用這位址使用 WebDAV 存取你的檔案。", "Clipboard is not available" : "剪貼板不可用", - "Webdav URL copied to clipboard" : "Webdav 連結已複製到剪貼板", + "Webdav URL copied to clipboard" : "WebDAV 連結已複製到剪貼板", "Unable to change the favourite state of the file" : "無法更改檔案的最愛狀態", "Error while loading the file data" : "載入檔案資料失敗", "Pick a template for {name}" : "為 {name} 選擇一個模板", |