1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 03:18:23 +00:00

rm ENABLE_THUMBNAIL

This commit is contained in:
skywalker
2021-07-27 11:38:38 +08:00
parent debc838898
commit 75e5eb4814
13 changed files with 24 additions and 33 deletions

View File

@@ -55,7 +55,7 @@ class FileContent extends React.Component {
// only for 'file view'. not for 'history/trash file view'
let thumbnailURL = '';
const fileExtList = ['tif', 'tiff', 'psd'];
if (this.props.canUseThumbnail && !repoEncrypted && fileExtList.includes(fileExt)) {
if (!repoEncrypted && fileExtList.includes(fileExt)) {
thumbnailURL = `${siteRoot}thumbnail/${repoID}/${thumbnailSizeForOriginal}${Utils.encodePath(filePath)}`;
}

View File

@@ -24,7 +24,7 @@ class InnerFileView extends React.Component {
let content;
switch (fileType) {
case 'Image':
content = <Image tip={<FileViewTip />} canUseThumbnail={true} />;
content = <Image tip={<FileViewTip />} />;
break;
case 'XMind':
content = <Image tip={<FileViewTip />} />;