1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-23 12:27:48 +00:00

fix search filter user name style (#7824)

This commit is contained in:
Michael An
2025-05-15 16:52:18 +08:00
committed by GitHub
parent 975e050377
commit 5c9d4bae70
2 changed files with 2 additions and 3 deletions

View File

@@ -76,9 +76,7 @@ const FilterByCreator = ({ creatorList, onChange }) => {
const getUsers = async () => { const getUsers = async () => {
try { try {
const res = await seafileAPI.searchUsers(searchValue); const res = await seafileAPI.searchUsers(searchValue);
const userList = res.data.users const userList = res.data.users.filter(user => user.name.toLowerCase().includes(searchValue.toLowerCase()));
.filter(user => user.name.toLowerCase().includes(searchValue.toLowerCase()));
setOptions(userList); setOptions(userList);
} catch (err) { } catch (err) {
toaster.danger(Utils.getErrorMsg(err)); toaster.danger(Utils.getErrorMsg(err));

View File

@@ -25,6 +25,7 @@
.user-item .user-name { .user-item .user-name {
margin-left: 5px; margin-left: 5px;
color: #212529;
} }
.user-item .user-avatar img { .user-item .user-avatar img {