Skip to content

Commit

Permalink
Merge pull request #988 from peer-42seoul/984-103-c-mypage-message-de…
Browse files Browse the repository at this point in the history
…tail-page-bug

[1.0.3 / C-MYPAGE] 쪽지 상세페이지 말풍선 줄바꿈 버그
  • Loading branch information
HiHoi authored Feb 14, 2024
2 parents bbf08b4 + ed25de5 commit 4a3d112
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/app/my-page/message/@detail/panel/MessageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ export const OwnerMessageItem = ({
sx={style[`contentMargin${messageOption}`]}
>
<MessageDate date={message.date} />
<Box sx={isPc ? style.ownerPc : style.ownerMobile}>
<Box
sx={{
...(isPc ? style.ownerPc : style.ownerMobile),
wordBreak: 'break-all',
}}
>
<Typography variant={'Body1'}>{message.content}</Typography>
</Box>
</Stack>
Expand Down Expand Up @@ -81,7 +86,12 @@ export const TargetMessageItem = ({
sx={style.targetAvatar}
/>
)}
<Box sx={isPc ? style.targetPc : style.targetMobile}>
<Box
sx={{
...(isPc ? style.targetPc : style.targetMobile),
wordBreak: 'break-all',
}}
>
<Typography variant={'Body1'}>{message.content}</Typography>
</Box>
<MessageDate date={message.date} />
Expand Down

0 comments on commit 4a3d112

Please sign in to comment.