Fixed scrolling
This commit is contained in:
parent
4fde4a48c5
commit
56f04b9627
@ -6,9 +6,6 @@
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
width: 100%;
|
|
||||||
margin: 0 auto;
|
|
||||||
overflow-y: auto;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -366,7 +366,8 @@ const Conversation = forwardRef<ConversationHandle, ConversationProps>((props: C
|
|||||||
// ...sx
|
// ...sx
|
||||||
// }}
|
// }}
|
||||||
// >
|
// >
|
||||||
<Box className="Conversation" sx={{ p: 1, mt: 0, overflow: "hidden", ...sx }}>
|
<Box className="Conversation" sx={{ border: "1px solid green", flexGrow: 1, minHeight: "max-content", height: "max-content", maxHeight: "max-content", overflow: "hidden" }}>
|
||||||
|
<Box sx={{ p: 1, mt: 0, ...sx }}>
|
||||||
{
|
{
|
||||||
filteredConversation.map((message, index) =>
|
filteredConversation.map((message, index) =>
|
||||||
<Message key={index} expanded={message.expanded === undefined ? true : message.expanded} {...{ sendQuery: processQuery, message, connectionBase, sessionId, setSnack, submitQuery }} />
|
<Message key={index} expanded={message.expanded === undefined ? true : message.expanded} {...{ sendQuery: processQuery, message, connectionBase, sessionId, setSnack, submitQuery }} />
|
||||||
@ -459,6 +460,7 @@ const Conversation = forwardRef<ConversationHandle, ConversationProps>((props: C
|
|||||||
}
|
}
|
||||||
<Box sx={{ display: "flex", flexGrow: 1 }}></Box>
|
<Box sx={{ display: "flex", flexGrow: 1 }}></Box>
|
||||||
</Box >
|
</Box >
|
||||||
|
</Box>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user