Merge pull request #333 from vkrm-segta/bug/ChatInput

Bug/chat input
This commit is contained in:
Henry Heng
2023-07-15 14:14:23 +01:00
committed by GitHub
3 changed files with 4 additions and 2 deletions
@@ -43,7 +43,7 @@ const ChatExpandDialog = ({ show, dialogProps, onClear, onCancel }) => {
)}
</div>
</DialogTitle>
<DialogContent>
<DialogContent sx={{ display: 'flex', justifyContent: 'flex-end', flexDirection: 'column' }}>
<ChatMessage isDialog={true} open={dialogProps.open} chatflowid={dialogProps.chatflowid} />
</DialogContent>
</Dialog>
@@ -127,7 +127,8 @@
.cloud-dialog {
width: 100%;
height: calc(100vh - 230px);
height: 100vh;
overflow-y: scroll;
border-radius: 0.5rem;
display: flex;
justify-content: center;
@@ -368,6 +368,7 @@ export const ChatMessage = ({ open, chatflowid, isDialog }) => {
value={userInput}
onChange={onChange}
multiline={true}
maxRows={isDialog ? 7 : 2}
endAdornment={
<InputAdornment position='end' sx={{ padding: '15px' }}>
<IconButton type='submit' disabled={loading || !chatflowid} edge='end'>