-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Words or links that are longer than the text box is wide don't wrap in message boxes #1774
Comments
@RAHarris word wrapping is hard. Forcing text into a box is a hard question. 😉 I tested the following HTML code: <!DOCTYPE html>
<html lang="en-US">
<head>
</head>
<body>
<p>https://subdomain.domain.com/pathname0/pathname1/pathname2/pathname3/pathname4/</p>
</body>
</html> It is not wrapped, but scrolled/clipped. I would prefer to follow default behavior of HTML. So I would prefer to either:
On the other hand, if you prefer Do you know how other messaging apps works in this case? E.g. iMessage, WhatsApp, Facebook Messenger, Skype, LINE. |
@mewa1024 and @DesignPolice, do we have a design preference on whether the text of URLs is clipped, scrolled, or wrapped? It looks like @compulim's preferred way is to keep it clipped. |
@corinagum I don't have a strong preference off the top of my head, but I think enabling the user to word-break by customizing WebChat seems fine as a P1. Sometimes truncation has a tooltip that shows the full value, but that would only for links, not for reallylongwordsthatarenotlinksandthereforehavenohoverstatetooltips. |
Thanks for the input. Temporarily assigning @compulim so he can add in a rebuttal, if he wishes. |
Agree with @mewa1024, tooltip is tricky here:
I see Teams and WhatsApp is also breaking up long words. Didn't check other messaging apps yet. I am okay to add a
|
Going with |
Repro steps: go to the demo page https://microsoft.github.io/BotFramework-WebChat/01.a.getting-started-full-bundle/ and for the user message type "https://subdomain.domain.com/pathname0/pathname1/pathname2/pathname3/pathname4/". The last part of the URL doesn't show up in the user or bot message boxes.
This could be fixed by adding "word-break: break-all;" as a style to .row.message elements
The text was updated successfully, but these errors were encountered: