@@ -14,6 +14,7 @@ import Pagination from "../Pagination/Pagination";
1414import { getGitpodService } from "../service/service" ;
1515import { AdminPageHeader } from "./AdminPageHeader" ;
1616import UserDetail from "./UserDetail" ;
17+ import searchIcon from "../icons/search.svg" ;
1718
1819export default function UserSearch ( ) {
1920 const location = useLocation ( ) ;
@@ -64,24 +65,23 @@ export default function UserSearch() {
6465 return (
6566 < AdminPageHeader title = "Admin" subtitle = "Configure and manage instance settings." >
6667 < div className = "app-container" >
67- < div className = "pt-8 flex" >
68+ < div className = "mb-3 mt-3 flex" >
6869 < div className = "flex justify-between w-full" >
69- < div className = "flex" >
70- < div className = "py-4" >
71- { searching ? (
70+ < div className = "flex relative h-10 my-auto " >
71+ { searching ? (
72+ < span className = "filter-grayscale absolute top-3 left-3" >
7273 < SpinnerLoader small = { true } />
73- ) : (
74- < svg width = "16" height = "16" fill = "none" xmlns = "http://www.w3.org/2000/svg" >
75- < path
76- fillRule = "evenodd"
77- clipRule = "evenodd"
78- d = "M6 2a4 4 0 100 8 4 4 0 000-8zM0 6a6 6 0 1110.89 3.477l4.817 4.816a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 010 6z"
79- fill = "#A8A29E"
80- />
81- </ svg >
82- ) }
83- </ div >
74+ </ span >
75+ ) : (
76+ < img
77+ src = { searchIcon }
78+ title = "Search"
79+ className = "filter-grayscale absolute top-3 left-3"
80+ alt = "search icon"
81+ />
82+ ) }
8483 < input
84+ className = "w-64 pl-9 border-0"
8585 type = "search"
8686 placeholder = "Search Users"
8787 onKeyDown = { ( ke ) => ke . key === "Enter" && search ( ) }
@@ -90,9 +90,6 @@ export default function UserSearch() {
9090 } }
9191 />
9292 </ div >
93- < button disabled = { searching } onClick = { ( ) => search ( ) } >
94- Search
95- </ button >
9693 </ div >
9794 </ div >
9895 < div className = "flex flex-col space-y-2" >
0 commit comments