1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

migrate old wiki to new wiki (#6987)

* migrate old wiki to new wiki

* change style

---------

Co-authored-by: Michael An <2331806369@qq.com>
This commit is contained in:
JoinTyang
2024-11-05 18:03:53 +08:00
committed by GitHub
parent 2cb758e302
commit cc625f7815
15 changed files with 351 additions and 23 deletions

View File

@@ -5,7 +5,7 @@ import { seafileAPI } from '../utils/seafile-api';
import { gettext, enableShowContactEmailWhenSearchUser, enableShowLoginIDWhenSearchUser } from '../utils/constants';
import { Utils } from '../utils/utils';
import toaster from './toast';
import { UserSelectStyle } from './common/select';
import { UserSelectStyle, NoOptionsStyle } from './common/select';
import '../css/user-select.css';
@@ -86,7 +86,6 @@ class UserSelect extends React.Component {
render() {
const searchValue = this.state.searchValue;
const style = { margin: '6px 10px', textAlign: 'center', color: 'hsl(0,0%,50%)' };
return (
<AsyncSelect
isClearable
@@ -94,7 +93,9 @@ class UserSelect extends React.Component {
components={{
NoOptionsMessage: (props) => {
return (
<div {...props.innerProps} style={style}>{searchValue ? gettext('User not found') : gettext('Enter characters to start searching')}</div>
<div {...props.innerProps} style={NoOptionsStyle}>
{searchValue ? gettext('User not found') : gettext('Enter characters to start searching')}
</div>
);
}
}}