bug/Chat input fix

This commit is contained in:
Vikram Segta
2023-06-15 10:41:06 +05:30
parent 8b8daced73
commit 92bbc938c9
2 changed files with 2 additions and 2 deletions
@@ -43,7 +43,7 @@ const ChatExpandDialog = ({ show, dialogProps, onClear, onCancel }) => {
)} )}
</div> </div>
</DialogTitle> </DialogTitle>
<DialogContent> <DialogContent sx={{ display: 'flex', justifyContent: 'flex-end', flexDirection: 'column' }}>
<ChatMessage isDialog={true} open={dialogProps.open} chatflowid={dialogProps.chatflowid} /> <ChatMessage isDialog={true} open={dialogProps.open} chatflowid={dialogProps.chatflowid} />
</DialogContent> </DialogContent>
</Dialog> </Dialog>
@@ -366,7 +366,7 @@ export const ChatMessage = ({ open, chatflowid, isDialog }) => {
value={userInput} value={userInput}
onChange={onChange} onChange={onChange}
multiline={true} multiline={true}
maxRows={2} maxRows={isDialog ? 7 : 2}
endAdornment={ endAdornment={
<InputAdornment position='end' sx={{ padding: '15px' }}> <InputAdornment position='end' sx={{ padding: '15px' }}>
<IconButton type='submit' disabled={loading || !chatflowid} edge='end'> <IconButton type='submit' disabled={loading || !chatflowid} edge='end'>