diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx
index a71d8b2..99a60f5 100644
--- a/src/components/Settings.tsx
+++ b/src/components/Settings.tsx
@@ -82,6 +82,7 @@ import {
} from "lucide-react";
import { Separator } from "@/components/ui/separator";
import { Slider } from "@/components/ui/slider";
+import { ScrollArea } from "@/components/ui/scroll-area";
const TTS_VOICES: string[] = [
"alloy",
@@ -351,7 +352,7 @@ const Slicer = (props: {
max={props.max}
step={0.01}
value={[props.chatStore[props.field]]}
- onValueChange={(value: number[]) => {
+ onValueChange={(value) => {
props.chatStore[props.field] = value[0];
props.setChatStore({ ...props.chatStore });
}}
@@ -535,39 +536,14 @@ export default (props: {
};
}, []); // The empty dependency array ensures that the effect runs only once
return (
- //
props.setShow(false)}
- // className="left-0 top-0 overflow-scroll flex justify-center absolute w-full h-full z-10"
- // >
- //
{
- // event.stopPropagation();
- // }}
- // className="modal-box"
- // >
- //
- //
{Tr("Settings")}
- //
- //
- //
-
- //
-
- //
- //
-
+
-
+
{Tr("Settings")}
@@ -1188,7 +1164,7 @@ export default (props: {
-
+
);
diff --git a/src/pages/Chatbox.tsx b/src/pages/Chatbox.tsx
index 780cbb5..759c4f6 100644
--- a/src/pages/Chatbox.tsx
+++ b/src/pages/Chatbox.tsx
@@ -49,6 +49,7 @@ import {
GlobeIcon,
ImageIcon,
KeyIcon,
+ SearchIcon,
} from "lucide-react";
import { Switch } from "@/components/ui/switch";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
@@ -458,26 +459,35 @@ export default function ChatBOX(props: {
return (
<>
- {true && (
-
- )}
+
+ {true && (
+
+ )}
+
+
{showSearch && (