mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 20:01:10 +00:00
Published repo style (#3832)
* fix FF style * change anonymous user search
This commit is contained in:
@@ -2,7 +2,7 @@ import React, { Component, Fragment } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import MediaQuery from 'react-responsive';
|
||||
import { seafileAPI } from '../../utils/seafile-api';
|
||||
import { gettext, siteRoot } from '../../utils/constants';
|
||||
import { gettext, siteRoot, username } from '../../utils/constants';
|
||||
import SearchResultItem from './search-result-item';
|
||||
import editorUtilities from '../../utils/editor-utilties';
|
||||
import More from '../more';
|
||||
@@ -276,7 +276,7 @@ class Search extends Component {
|
||||
onChange={this.onChangeHandler}
|
||||
autoComplete="off"
|
||||
/>
|
||||
{this.state.isCloseShow &&
|
||||
{(this.state.isCloseShow && username) &&
|
||||
<i className='search-icon-right input-icon-addon fas fa-external-link-alt search-icon-arrow'
|
||||
onClick={this.onSearchPage}></i>
|
||||
}
|
||||
@@ -309,7 +309,7 @@ class Search extends Component {
|
||||
onChange={this.onChangeHandler}
|
||||
autoComplete="off"
|
||||
/>
|
||||
{this.state.isCloseShow &&
|
||||
{(this.state.isCloseShow && username) &&
|
||||
<i className='search-icon-right input-icon-addon fas fa-external-link-alt search-icon-arrow'
|
||||
onClick={this.onSearchPage}></i>
|
||||
}
|
||||
|
@@ -84,8 +84,8 @@
|
||||
}
|
||||
.search-result-item .item-content {
|
||||
flex: 1;
|
||||
width: 0;
|
||||
margin-left: 0.25rem;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.item-content .item-name a {
|
||||
color: #EA8102 !important;
|
||||
|
Reference in New Issue
Block a user