diff --git a/src/search.tsx b/src/search.tsx
index 1e19c2d..80da4c7 100644
--- a/src/search.tsx
+++ b/src/search.tsx
@@ -30,23 +30,23 @@ export default function Search(props: {
onClick={(event: any) => {
event.stopPropagation();
}}
- className="m-2 p-2 bg-white rounded-lg h-fit w-2/3 z-20"
+ className="m-2 p-2 bg-base-300 rounded-lg h-fit w-2/3 z-20"
>
Search
-
{
const query = event.target.value.trim().toLowerCase();
if (!query) {
@@ -119,44 +119,14 @@ export default function Search(props: {
/>
{searching && Searching {searchingNow}%...
}
- {searchResult.length > 0 && (
-
-
-
- Page: {pageIndex + 1} / {Math.floor(searchResult.length / 10) + 1}
-
-
-
- )}
+
{searchResult
.slice(pageIndex * 10, (pageIndex + 1) * 10)
.map((result: ChatStoreSearchResult) => {
return (
{
props.setSelectedChatIndex(parseInt(result.key.toString()));
@@ -169,6 +139,40 @@ export default function Search(props: {
);
})}
+ {searchResult.length > 0 && (
+
+
+
+
+
+
+
+ )}
);