diff --git a/frontend/src/shared-dir-view.js b/frontend/src/shared-dir-view.js
index 8ed41495a6..af5b091bfc 100644
--- a/frontend/src/shared-dir-view.js
+++ b/frontend/src/shared-dir-view.js
@@ -289,8 +289,8 @@ class SharedDirView extends React.Component {
{isDesktop &&
}
{canUpload && (
@@ -516,7 +516,7 @@ class Item extends React.Component {
if (item.is_dir) {
return isDesktop ? (
-
+
{showDownloadIcon &&
@@ -530,7 +530,7 @@ class Item extends React.Component {
| {moment(item.last_modified).fromNow()} |
{showDownloadIcon &&
-
+
}
|
@@ -568,7 +568,7 @@ class Item extends React.Component {
const fileURL = `${siteRoot}d/${token}/files/?p=${encodeURIComponent(item.file_path)}`;
const thumbnailURL = item.encoded_thumbnail_src ? `${siteRoot}${item.encoded_thumbnail_src}` : '';
return isDesktop ? (
-
+
{showDownloadIcon &&
@@ -669,13 +669,13 @@ class GridItem extends React.Component {
if (item.is_dir) {
const folderURL = `?p=${encodeURIComponent(item.folder_path.substr(0, item.folder_path.length - 1))}&mode=${mode}`;
return (
-
+
{item.folder_name}
{showDownloadIcon &&
-
+
}
@@ -684,7 +684,7 @@ class GridItem extends React.Component {
const fileURL = `${siteRoot}d/${token}/files/?p=${encodeURIComponent(item.file_path)}`;
const thumbnailURL = item.encoded_thumbnail_src ? `${siteRoot}${item.encoded_thumbnail_src}` : '';
return (
-
+
{thumbnailURL ?
:
|