Skip to content

Commit

Permalink
Fix dialog boxes extending beyond the window (#1446)
Browse files Browse the repository at this point in the history
Closes #1422.

Co-authored-by: laodanfeng <[email protected]>
  • Loading branch information
2 people authored and dokterbob committed Oct 21, 2024
1 parent 2598552 commit b0232e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/components/molecules/messages/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ const Message = memo(
>
{/* User message is displayed differently */}
{isUserMessage ? (
<Box display="flex" flexDirection="column" flexGrow={1}>
<Box
display="flex"
flexDirection="column"
flexGrow={1}
maxWidth={'100%'}
>
<UserMessage message={message}>
<MessageContent
elements={elements}
Expand Down

0 comments on commit b0232e1

Please sign in to comment.