Skip to content
Snippets Groups Projects
Commit a103df85 authored by Vink, S.A. (Sjoerd)'s avatar Vink, S.A. (Sjoerd)
Browse files

feat(visManager): search

parent 41707929
No related branches found
No related tags found
2 merge requests!135geo intergation,!129Feat/visManager
Pipeline #131530 passed
This commit is part of merge request !135. Comments created here will be created in the context of that merge request.
......@@ -115,7 +115,7 @@ export default function Searchbar() {
value={search}
onChange={(e) => setSearch(e.target.value)}
id="input-group-search"
className="block w-full p-2 ps-10 text-sm text-secondary-900 border border-secondary-300 rounded bg-secondary-50 focus:ring-blue-500 focus:border-blue-500 focus:ring-0"
className="block w-full p-2 ps-2 text-sm text-secondary-900 border border-secondary-300 rounded bg-secondary-50 focus:ring-blue-500 focus:border-blue-500 focus:ring-0"
placeholder="Search database"
></input>
</div>
......@@ -131,8 +131,7 @@ export default function Searchbar() {
</div>
)}
{search !== '' && (
<div className="z-10 rounded card-bordered w-full overflow-auto max-h-[60vh] px-3 pb-3">
<p className="font-bold text-sm">Results</p>
<div className="z-10 w-full overflow-y-auto scroll h-full px-2 pb-2">
{SEARCH_CATEGORIES.every((category) => results[category].nodes.length === 0 && results[category].edges.length === 0) ? (
<div className="ml-1 text-sm">
<p className="text-secondary-500">Found no matches...</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment