set file extension to .png
This commit is contained in:
parent
bb18f128ce
commit
4c287b54ce
2 changed files with 7 additions and 7 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue