1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 19:29:56 +00:00

optimize permission limit (#5238)

This commit is contained in:
杨顺强
2022-08-11 10:55:53 +08:00
committed by GitHub
parent 245972cec8
commit a3eb82f3fb
2 changed files with 3 additions and 3 deletions

View File

@@ -220,7 +220,7 @@ class DirentGridItem extends React.Component {
onDragLeave={this.onGridItemDragLeave}
onDrop={this.onGridItemDragDrop}
>
{dirent.encoded_thumbnail_src ?
{(this.canPreview && dirent.encoded_thumbnail_src) ?
<img src={`${siteRoot}${fileUrl}`} ref={this.gridIcon} className="thumbnail" onClick={this.onItemClick} alt=""/> :
<img src={iconUrl} ref={this.gridIcon} width="96" alt='' />
}