Words Getting Cutoff
# 🤝help
s
Hi everyone, When using my chatbot through a web integration, the words keep cutting off rather than going to the next line. Notice how "provide" gets split up to "p-rovide." How do I stop this from happening? https://cdn.discordapp.com/attachments/1240335718463836231/1240335718627278869/Screenshot_2024-05-15_120940.png?ex=66463027&is=6644dea7&hm=210527f7890ce825df79ba297b0abcae15c29219d0a7db472f9bbae160128b39&
f
I am suffering this same issue of the words breaking across lines in the middle of the word. I don't know what CSS to add, or exactly where to add it. @early-boots-14521 has a post on this too. @famous-jewelry-85388, is this an easy fix?
e
I had to bring the whole css file to my server. I fixed it with break-word: normal. But it would be great to just link our css like in the old webchat
f
for what class did you set that attribute, like .bpw-chat-bubble?
Did you use something like this @User ? I still have the attribute being overridden by a stylesheet somewhere on botpress that sets it to 'word-break: break-all' .bpMessageContainer .bpMessageBlocksBubble, .bpMessageContainer .bpMessageBlocksBubble p { word-break: normal !important; white-space: normal !important; overflow-wrap: normal !important; }
e
Yes but it's not gonna work unless you host the config.js file and the style.css that the script fetches on your own domain
f
thanks. I switched it back to v1 and now the word-break it's not an issue. v2 is kind of lame so far. is it still in beta?
e
Really? I couldnt get v1 to work for me at all anymore even!
f
yeah, you need the pre-configured code, v2 and v1 are different. I didn't do that at first, but then i went back to v1, recopied my preconfigured embed script and then it reverted. (Actually, i'm finding that v0 works better with the botpress Styler and stylesheet for me. the height is controlled better)
It also took care of the issue of bottom choice buttons prevented from being selected. (another issue posted in the help: https://discord.com/channels/1108396290624213082/1240578054565400598)
e
I just wish they would make the web version a bit faster...
It's so slow compared with other integrations
e
It worked! Thanks! Today 20/05/24 they add Additional Styles (CSS) options.
e
Was coming here to say this!
c
Im new to this tech, what is the thing that worked to fix the word wrapping? Thanks!!
e
Add this in the custom css of the Webchat integration. Click see more
c
Thanks I added the code above here in the Integrations / Additional Styles, and still getting the issue. I switched back to Classic https://cdn.discordapp.com/attachments/1240335718463836231/1242207190379528202/image.png?ex=664cff19&is=664bad99&hm=04d5caf557a3f1723b67fd311780c72f89b9f58add073399011ecc255d808550&
e
Hmm sorry I will check out what I did exactly I'm not home now
Here
c
That worked!! Thank you so much!!
49 Views