Skip to content

Commit

Permalink
fix(chatlog): fix overflow on message bubbles (#3723)
Browse files Browse the repository at this point in the history
* fix(chatlog): fix overflow on message bubbles

* chore: add story example that covers a very long, wrapping word
  • Loading branch information
TheSisb committed Jan 26, 2024
1 parent e0e69e7 commit 41b3668
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/pink-buckets-hope.md
@@ -0,0 +1,6 @@
---
"@twilio-paste/chat-log": patch
"@twilio-paste/core": patch
---

[ChatLog] Fix overflow on message bubbles
3 changes: 3 additions & 0 deletions packages/paste-core/components/chat-log/src/ChatBubble.tsx
Expand Up @@ -45,6 +45,9 @@ export const ChatBubble = React.forwardRef<HTMLDivElement, ChatBubbleProps>(
paddingY="space30"
paddingX="space40"
marginBottom="space30"
wordWrap="break-word"
maxWidth="100%"
minWidth={0}
element={element}
ref={ref}
variant={variant}
Expand Down
Expand Up @@ -170,7 +170,9 @@ export const ExampleChatLog: StoryFn = () => (
</ChatMessageMeta>
</ChatMessage>
<ChatMessage variant="outbound">
<ChatBubble>Nulla sit amet elit mauris.</ChatBubble>
<ChatBubble>
https://www.LONGURLTEST.LONGURLTEST.LONGURLTEST.LONGURLTEST.LONGURLTEST.LONGURLTEST.LONGURLTEST.LONGURLTEST.LONGURLTEST.LONGURLTEST.LONGURLTEST.LONGURLTEST.LONGURLTEST.LONGURLTEST.com
</ChatBubble>
<ChatMessageMeta aria-label="said by you at 4:32pm">
<ChatMessageMetaItem>4:32pm</ChatMessageMetaItem>
</ChatMessageMeta>
Expand Down

0 comments on commit 41b3668

Please sign in to comment.