Skip to content

Commit

Permalink
change grid file icon size to 80px (#7363)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 authored Jan 15, 2025
1 parent 61215e4 commit 3a4ce4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class DirentGridItem extends React.Component {
>
{(this.canPreview && dirent.encoded_thumbnail_src) ?
<img src={`${siteRoot}${dirent.encoded_thumbnail_src || ''}`} className="thumbnail" onClick={this.onItemClick} alt=""/> :
<img src={Utils.getDirentIcon(dirent, true)} width="96" alt='' />
<img src={Utils.getDirentIcon(dirent, true)} width="80" height="80" alt='' />
}
{is_locked &&
<img
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/shared-dir-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ class GridItem extends React.Component {
return (
<li className="grid-item" onMouseOver={this.handleMouseOver} onMouseOut={this.handleMouseOut} onFocus={this.handleMouseOver}>
<a href={folderURL} className="grid-file-img-link d-block">
<img src={Utils.getFolderIconUrl(false, 192)} alt="" width="96" height="96" />
<img src={Utils.getFolderIconUrl(false, 192)} alt="" width="80" height="80" />
</a>
<a href={folderURL} className="grid-file-name grid-file-name-link">{item.folder_name}</a>
{showDownloadIcon &&
Expand All @@ -994,7 +994,7 @@ class GridItem extends React.Component {
<a href={fileURL} className="grid-file-img-link d-block" onClick={this.handleFileClick}>
{thumbnailURL ?
<img className="thumbnail" src={thumbnailURL} alt="" /> :
<img src={Utils.getFileIconUrl(item.file_name)} alt="" width="96" height="96" />
<img src={Utils.getFileIconUrl(item.file_name)} alt="" width="80" height="80" />
}
</a>
<a href={fileURL} className="grid-file-name grid-file-name-link" onClick={this.handleFileClick}>{item.file_name}</a>
Expand Down

0 comments on commit 3a4ce4e

Please sign in to comment.