Merge remote-tracking branch 'origin/websocket' into chat_and_cache

This commit is contained in:
Gabriel Almeida 2023-04-25 23:53:17 -03:00
commit df0897a96e
2 changed files with 7 additions and 7 deletions

View file

@ -8,12 +8,12 @@ export default function ChatInput({
sendMessage, sendMessage,
setChatValue, setChatValue,
}: { }: {
lockChat:boolean; lockChat: boolean;
chatValue:string; chatValue: string;
sendMessage:Function; sendMessage: Function;
setChatValue:Function; setChatValue: Function;
}) { }) {
const inputRef = useRef(null); const inputRef = useRef(null);
return ( return (
<> <>
<textarea <textarea
@ -24,7 +24,7 @@ export default function ChatInput({
}} }}
ref={inputRef} ref={inputRef}
disabled={lockChat} disabled={lockChat}
style={{ minHeight: "50px", maxHeight: "100px", resize: "none" }} style={{minHeight: "40px", maxHeight: "100px", resize: "none" }}
value={lockChat ? "Thinking..." : chatValue} value={lockChat ? "Thinking..." : chatValue}
onChange={(e) => { onChange={(e) => {
inputRef.current.style.height = "auto"; inputRef.current.style.height = "auto";

View file

@ -8,7 +8,7 @@ export default function FileCard({ fileName, content, fileType }) {
const url = URL.createObjectURL(blob); const url = URL.createObjectURL(blob);
const link = document.createElement('a'); const link = document.createElement('a');
link.href = url; link.href = url;
link.download = fileName; link.download = fileName+".png";
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();
document.body.removeChild(link); document.body.removeChild(link);