set file extension to .png

This commit is contained in:
anovazzi1 2023-04-25 23:47:55 -03:00
commit 4c287b54ce
2 changed files with 7 additions and 7 deletions

View file

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

View file

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