Skip to content

Commit

Permalink
messaging client: fix overflowing long message in bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Chen authored and Amy Chen committed Feb 23, 2024
1 parent 647035c commit 7947ee4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/MessagingView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,15 @@ export default class MessagingView extends React.Component<
let messageGroup = (
<Grid item xs={11} md={10} lg={8}>
<Stack direction={"column"} alignItems={align} paddingBottom={0.5}>
<Stack direction={"row"} alignItems={"center"} spacing={1}>
<Stack
direction={"row"}
alignItems={"center"}
spacing={1}
sx={{
whiteSpace: "normal",
wordBreak: "break-word",
}}
>
{bubbleAndPriorityRow}
</Stack>
{themes.length > 0 && (
Expand Down Expand Up @@ -1576,7 +1584,7 @@ export default class MessagingView extends React.Component<
sx={{
whiteSpace: "pre", // preserve line break character
textAlign: incoming ? "left" : "right",
color: error ? red[900] : "#0009"
color: error ? red[900] : "#0009",
}}
>
{comment}
Expand Down

0 comments on commit 7947ee4

Please sign in to comment.