Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion packages/ui/src/ui-component/markdown/MemoizedReactMarkdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,18 @@ export const MemoizedReactMarkdown = memo(
)
},
p({ children }) {
return <p style={{ whiteSpace: 'pre-line' }}>{children}</p>
return (
<p
style={{
whiteSpace: 'pre-line',
overflowWrap: 'break-word',
wordBreak: 'break-word',
marginRight: '1.5rem' // Awful hack to avoid text overflow issues
}}
>
{children}
</p>
)
},
...props.components
}}
Expand Down
37 changes: 24 additions & 13 deletions packages/ui/src/views/chatmessage/AgentExecutedDataCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,9 @@ const AgentExecutedDataCard = ({ status, execution, agentflowId, sessionId }) =>
<Box sx={{ display: 'flex', height: '100%', width: '100%', mt: 2 }}>
<Accordion
sx={{
width: '100%'
width: '100%',
maxWidth: '100%',
overflow: 'hidden'
}}
>
<AccordionSummary
Expand Down Expand Up @@ -683,18 +685,27 @@ const AgentExecutedDataCard = ({ status, execution, agentflowId, sessionId }) =>
<Typography>Process Flow</Typography>
</AccordionSummary>
<Divider />
<AccordionDetails>
<RichTreeView
expandedItems={expandedItems}
onExpandedItemsChange={handleExpandedItemsChange}
selectedItems={selectedItem ? [selectedItem.id] : []}
onSelectedItemsChange={handleNodeSelect}
items={executionTree}
slots={{
item: (treeItemProps) => <CustomTreeItem {...treeItemProps} agentflowId={agentflowId} sessionId={sessionId} />
}}
sx={{ width: '100%' }}
/>
<AccordionDetails
sx={{
overflowX: 'auto',
padding: 0
}}
>
<Box sx={{ padding: 2, minWidth: 'fit-content' }}>
<RichTreeView
expandedItems={expandedItems}
onExpandedItemsChange={handleExpandedItemsChange}
selectedItems={selectedItem ? [selectedItem.id] : []}
onSelectedItemsChange={handleNodeSelect}
items={executionTree}
slots={{
item: (treeItemProps) => (
<CustomTreeItem {...treeItemProps} agentflowId={agentflowId} sessionId={sessionId} />
)
}}
sx={{ width: '100%' }}
/>
</Box>
</AccordionDetails>
</Accordion>
</Box>
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/views/chatmessage/ChatMessage.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
width: 100%;
height: auto;
border-radius: 0.5rem;
overflow: hidden;
}

.messagelistloading {
Expand Down