Request for ChatBubble component to accept "width" prop. #3624
-
Hey there! I'm currently making some changes to OneSupportCenter ticket details and working with the ChatBubble and ChatMessageMetaItem components. I am updating the ChatMessageMetaItem to include the full datetime stamp of the related message. This has already been done but I was attempting to get the ChatBubble to fill out the entire width of the ChatMessageMetaItem, which now stretches past the end of the ChatBubble. See the below images for before/after: I found the fix for this, which was wrapping both ChatBubble and ChatMessageMetaItem in a div with display: grid and setting ChatBubble width to 100%. However, it appears that this is not an accepted prop: "Property 'width' does not exist on type 'IntrinsicAttributes & ChatBubbleProps & RefAttributes'". Is there a potential workaround or alternative solution that can accomplish this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Sorry, I don't know how to help with that. I did do a search though, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
Hey @ChronoBroc ! We intentionally don't show the avatar on the outgoing "You" side of the chat on our doc site examples because it's not a super common visual pattern for chat. And the text doesn't end up looking so odd poking out from the side of the chat bubble as the avatar does: But! If you do absolutely need the avatar on the "You" side, please let us know. We're doing some iterations on our Chat Log in the next 2 months, and we'd love to learn more about why. |
Beta Was this translation helpful? Give feedback.
Hey @ChronoBroc ! We intentionally don't show the avatar on the outgoing "You" side of the chat on our doc site examples because it's not a super common visual pattern for chat. And the text doesn't end up looking so odd poking out from the side of the chat bubble as the avatar does:
But! If you do absolutely need the avatar on the "You" side, please let us know. We're doing some iterations on our Chat Log in the next 2 months, and we'd love to learn more about why.