1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

repair bug (#3086)

This commit is contained in:
杨顺强
2019-03-09 15:23:07 +08:00
committed by Daniel Pan
parent ea1490caaa
commit 56870a2b27
2 changed files with 20 additions and 10 deletions

View File

@@ -31,8 +31,8 @@ class SearchedListItem extends React.Component {
render() {
let { item, currentItem } = this.props;
let fileIconUrl = item.is_dir ? Utils.getFolderIconUrl(false, 24) : Utils.getFileIconUrl(item.name, 24);
let trClass = this.state.highlight ? 'tr-hightlight' : '';
let fileIconUrl = item.is_dir ? Utils.getFolderIconUrl(false, 192) : Utils.getFileIconUrl(item.name, 192);
let trClass = this.state.highlight ? 'tr-highlight' : '';
if (currentItem) {
if (item.repo_id === currentItem.repo_id && item.path === currentItem.path) {
trClass = 'searched-active';