mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 14:50:29 +00:00
fix code format (#6365)
This commit is contained in:
@@ -33,7 +33,8 @@ class SearchByName extends Component {
|
||||
className="sf3-font sf3-font-search top-search-file-icon"
|
||||
onClick={this.toggleDialog}
|
||||
title={gettext('Search files in this library')}
|
||||
></i>
|
||||
>
|
||||
</i>
|
||||
{this.state.isDialogOpen &&
|
||||
<SearchFileDialog
|
||||
repoID={repoID}
|
||||
|
@@ -33,7 +33,7 @@ class SearchResultItem extends React.Component {
|
||||
|
||||
return (
|
||||
<li
|
||||
className={classnames('search-result-item', {'search-result-item-highlight': this.props.isHighlight })}
|
||||
className={classnames('search-result-item', { 'search-result-item-highlight': this.props.isHighlight })}
|
||||
onClick={this.onClickHandler}
|
||||
ref={ref => this.props.setRef(ref)}
|
||||
>
|
||||
@@ -41,7 +41,7 @@ class SearchResultItem extends React.Component {
|
||||
<div className="item-content">
|
||||
<div className="item-name ellipsis">{item.name}</div>
|
||||
<div className="item-link ellipsis">{showName}</div>
|
||||
<div className="item-text ellipsis" dangerouslySetInnerHTML={{__html: item.content}}></div>
|
||||
<div className="item-text ellipsis" dangerouslySetInnerHTML={{ __html: item.content }}></div>
|
||||
</div>
|
||||
</li>
|
||||
);
|
||||
|
@@ -6,7 +6,7 @@ import { Utils } from '../../utils/utils';
|
||||
function SearchResultLibrary(props) {
|
||||
const { item, isHighlight, onClick } = props;
|
||||
return (
|
||||
<li className={classnames('search-result-item', {'search-result-item-highlight': isHighlight })} onClick={() => onClick(item)}>
|
||||
<li className={classnames('search-result-item', { 'search-result-item-highlight': isHighlight })} onClick={() => onClick(item)}>
|
||||
<img className='lib-item-img' src={Utils.getDefaultLibIconUrl(true)} alt="" />
|
||||
<div className="item-content d-flex justify-content-between align-items-center ellipsis">{item.name}</div>
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user