Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unleash AI chat message code not breaking to new line #8455

Merged
merged 1 commit into from
Oct 15, 2024
Merged
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
fix: unleash AI chat message code not breaking to new line
nunogois committed Oct 15, 2024
commit 42c7cce89c10f83f5e2639fc6f449a99b3f15608
3 changes: 3 additions & 0 deletions frontend/src/component/ai/AIChatMessage.tsx
Original file line number Diff line number Diff line change
@@ -43,6 +43,9 @@ const StyledAIMessage = styled('div')(({ theme }) => ({
borderWidth: '5px',
borderColor: `transparent ${theme.palette.secondary.border} transparent transparent`,
},
pre: {
whiteSpace: 'pre-wrap',
},
}));

const StyledUserMessage = styled(StyledAIMessage)(({ theme }) => ({